Golang conditionals
From wikinotes
If statements
if 1 > 0 { fmt.Println("true") }You can also assign and test a variable in one step.
if err := file.Chmod(0664); err != nil { log.Print(err) }
if 1 > 0 { fmt.Println("true") }You can also assign and test a variable in one step.
if err := file.Chmod(0664); err != nil { log.Print(err) }