Created
March 20, 2019 23:16
-
-
Save jianchen2580/144d97cc4fd0afe5c5c21e31cd7f4615 to your computer and use it in GitHub Desktop.
Inspect GO struct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"json" | |
"fmt" | |
) | |
func main() { | |
s, _ := json.MarshalIndent(config, "", "\t") | |
fmt.Println(s) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment