MCPcopy Create free account
hub / github.com/MG-RAST/Shock / NewCS

Function NewCS

shock-server/conf/conf_store.go:76–82  ·  view source on GitHub ↗
(c *config.Config)

Source from the content-addressed store, hash-verified

74}
75
76func 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
84func (this *Config_store) AddString(target *string,
85 default_value string,

Callers 1

getConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected