Saved Bookmarks
| 1. |
Can you format a string without printing? |
|
Answer» Yes, we can do that by using the Sprintf command as shown in the example below: RETURN fmt.Sprintf ("Size: %d MB.", 50)The fmt.Sprintf function formats a string and returns the string WITHOUT PRINTING it. |
|