Open PetaTookmyKFC opened 1 week ago
Arrays and maps cannot be encoded within structs, but other structs can as long as they are singular.
Encodes fine
type Name struct { First string Last string } type User struct { id string Name name Age int }
Fails to encode -- Error Type Not Supported
type Name struct { First string Last string } type User struct { id string Name name Age int Friends []string }
Na bro... That seems hard
Arrays and maps cannot be encoded within structs, but other structs can as long as they are singular.
Encodes fine
Fails to encode -- Error Type Not Supported