Quantcast
Channel: User Norbert - Stack Overflow
Viewing all articles
Browse latest Browse all 42

Answer by Norbert for How to use json tags in anonymously nested struct?

$
0
0

The issue is with the base structure.

    type s struct {        Links struct {            Self struct {                Href string            }        } `json:"_links"`    }

is the correct syntax


Viewing all articles
Browse latest Browse all 42

Trending Articles