mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
![]() Problems arise from the fact that the are two kind of successful responses: The array of objects response like {"key":[{obj1},{obj2},...]} and the single object response like {"key":{obj}}. The function will try to check if the response can be unmarshaled in an array of generic type variables so to match the first case. If not it will try to unmarshal to a single generic type variable and 1 will be returned as the length of the response. If this will also fail -1 will be returned. |
||
---|---|---|
.. | ||
amqpclient.go | ||
database.go | ||
database_test.go | ||
models.go | ||
responses.go | ||
roles.go | ||
serializers.go | ||
testdata.go | ||
utilities.go |