DRYな備忘録

Don't Repeat Yourself.

Go言語でゼロ埋め【zero padding】【golang】

fmt.Printf("%04d", 20)
// "0020"
// s := fmt.Sprintf("%04d", 20)

ついでに