Check out example codes for "go format string". It will help you in understanding the concepts better.

Code Example 1

s := fmt.Sprintf("string: %s number: %d time: %v", "string", 1, time.Now())

Code Example 2

fmt.Sprintf("foo: %s", bar)

Code Example 3

return fmt.Sprintf("at %v, %s", e.When, e.What)

Learn ReactJs, React Native from akashmittal.com