Question: what are flags in golang?
Answer: up vote 6. flags are a common way to specify options for command-line programs. package main import ( "flag" "fmt" ) var ( env *string port *int ) // Basic flag declarations are available for string, integer, and boolean options. func init() { env = flag.