How can I create a struct
for the following data structure in Go?
{
"description": String,
"public": Boolean,
"files": {
"some_filename.txt": {
"contents": String
}
}
}
I have started with the following:
type File struct {
// stuck here?
}
type Payload struct {
Description string
Public bool
Files File
}
Any help with using this for a HTTP post request would be greatly appreciated.