- go run <file_name>
- go build <file_name>
Formatting Verbs for Printf()
- Go offers several formatting verbs that can be used with the Printf() function.
- The following verbs can be used with all data types
Verb | Description |
---|---|
%v | Prints the value in the default format |
%#v | Prints the value in Go-syntax format |
%T | Prints the type of the value |
%% | Prints the % sign |