Skip to content

Instantly share code, notes, and snippets.

@luqmansen
Created November 17, 2021 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luqmansen/57e75567e5c4a60a8ddc922e7e93de90 to your computer and use it in GitHub Desktop.
Save luqmansen/57e75567e5c4a60a8ddc922e7e93de90 to your computer and use it in GitHub Desktop.
Debug Golang Struct
func debugStruct(d interface{}) {
s, _ := json.MarshalIndent(d, "", "\t")
fmt.Println(string(s))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment