go format to string code example Example: go format string s := fmt.Sprintf("string: %s number: %d time: %v", "string", 1, time.Now())