1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package main import "flag" func parseConfig() Config { verbose = flag.Bool("v", false, "verbose output") flag.Parse() config := Config{ Arch: "x86", Bits: 32, Memsize: 1024, MaxProgSize: 64, } return config }