package main import ( "fmt" ) func main() { x := "srq" fmt.Printf("|%-*s|", 4, x) }