func main() { accessToken := "aaaaaaaaaaaaaaaaaaaaa" c := appConfig.NewAppConfig("goSampleApp") err := c.WriteAppConfig(bytes.NewBufferString(accessToken).Bytes()) if err != nil { log.Fatal(err) } data, err := c.ReadAppConfig() if err != nil { log.Fatal(err) } fmt.Println(string(data)) }
func NewGitlabCliAppConfig(appName string) *GitlabCliAppConfig { return &GitlabCliAppConfig{ AppConfig: *appConfig.NewAppConfig(appName, configFileName), } }