How you can format a string without printing?
Answer / Afjal Ali Ansari
In Go, to format a string without printing, you can use the fmt.Sprintf function. It returns the formatted string as a result instead of printing it directly.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the usage of goto statement in go programming language?
Why should one use go programming language?
How to swap two values in golang?
In go language how you can check variable type at runtime?
How would you print type of variable in go?
Who is known as the father of go programming language?
What is the default value of a local variable in go?
What is type casting in go programming?
Does go (golang) support type inheritance?
How can an entry be deleted from a map?
What is gopath environment variable?
Does go support pointer arithmetics?