June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package main import ( "flag" "fmt" ) // Config will be the holder for our flags type Config struct { subject string isAwesome bool howAwesome int countTheWays CountTheWays } // Setup initializes a config from flags that // are passed in func (c *Config) Setup() { // you can set a flag directly like so: // var someVar = flag.String("flag_name", "default_val", // "description") ...Read now
Unlock full access