# Golang

# Functions

# Printf

In this example, fmt.Printf formats and writes to standard output:

fmt.Printf("Binary: %b\\%b", 4, 5)
1
Binary: 100\101
1

# Sprintf (format without printing)

Use fmt.Sprintf to format a string without printing it:

s := fmt.Sprintf("Binary: %b\\%b", 4, 5)
1

No output but the value is :

s == 'Binary: 100\101'
1

Sourcesopen in new window

# Optimization

Optimizing a golang service to reduce over 40 cpuopen in new window

# Templating

https://golangdocs.com/templates-in-golang