Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created December 6, 2020 18:07
Show Gist options
  • Save madflojo/4964075199ca96a5c4252b269d65da8e to your computer and use it in GitHub Desktop.
Save madflojo/4964075199ca96a5c4252b269d65da8e to your computer and use it in GitHub Desktop.
maps.vs.structs.datastructs
// Print the name
fmt.Printf("Name is %s\n", data.Name)
// Print the Numbers
fmt.Printf("Numbers include")
for _, v := range data.Numbers {
fmt.Printf(" %d", v)
}
fmt.Printf("\n")
// Print the Description
fmt.Printf("Description is %s", data.Nested.Description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment