Hacker symbol

September 8, 2019 ~ 1 min read

String format padding

A way of adding padding with spaces. From https://golang.org/pkg/fmt/: "-" pad with spaces on the right rather than the left (left-justify the field)

fmt.Fprintf(W, "%-30s | MP | W | D | L | P", "Team")

The above pads with spaces (denoted by the s char) on the left with quantity of 30.

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.