[Solved] json: invalid use of string struct tag [closed]
As the error says, your use of ,string is invalid for your JSON input. Remove it: Name string `json:”name,omitempty”` ,string can be valid in a JSON tag, and it indicates that the number should be marshaled as a string literal. In the case of a value which is already a string, that means it expects … Read more