Skip to content

Instantly share code, notes, and snippets.

@nascimento
Created May 6, 2022 21:02
goavro linkedin textual parser UTF-8 ( Golang )
func textualUtf8Resolver(textual []byte) ([]byte, error) {
var t map[string]interface{}
_ = json.Unmarshal(textual, &t)
response, err := json.Marshal(t)
if err != nil {
return nil, err
}
return response, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment