1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package forgepb import ( "fmt" ) func (all *ForgeConfigs) sampleConfig() { new1 := new(ForgeConfig) new1.GoPath = "go.wit.com" new1.Writable = true new1.Directory = true all.Append(new1) fmt.Println("first time user. adding an example config file with", len(all.ForgeConfigs), "repos") }