(c *config.Config)
| 74 | } |
| 75 | |
| 76 | func NewCS(c *config.Config) *Config_store { |
| 77 | cs := &Config_store{Store: make([]*Config_value, 0, 100), Con: c} // length 0, capacity 100 |
| 78 | cs.Fs = flag.NewFlagSet("name", flag.ContinueOnError) |
| 79 | cs.Fs.BoolVar(&FAKE_VAR, "fake_var", true, "ignore this") |
| 80 | cs.Fs.BoolVar(&SHOW_HELP, "h", false, "ignore this") // for help: -h |
| 81 | return cs |
| 82 | } |
| 83 | |
| 84 | func (this *Config_store) AddString(target *string, |
| 85 | default_value string, |