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

Code Example 1

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

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com