print
In golang, it is output to the standard error stream and printed. It is not officially recommended to use it when writing programs. It can be used during debugging.
fmt.print
is a standard output stream in golang and is generally used for Screen output.
##fmt.Printf
is formatted output;fmt.PrintlnIt is to wrap the line after output;
fmt.Sprintis to return a formatted string.
The above is the detailed content of The difference between print and fmt in golang. For more information, please follow other related articles on the PHP Chinese website!