Skip to content
/ goconf Public

A preferences API similar to fyne, but without a trace of it.

License

Notifications You must be signed in to change notification settings

Tom5521/goconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goconf

This is a preferences API inspired by that of fyne

Create this basically because, the fyne configuration api saves its files in [configuration path]/fyne/appID/config.json and with this case, I want it to be saved in [configuration path]/appID/config.json without any trace of that framework, since it is a GUI framework, and I would like to be able to apply that to a CLI application

Usage/Examples

package main

import (
 "fmt"

 conf "github.com/Tom5521/goconf"
)

func main() {
 settings, err := conf.New("myapp")
 if err != nil {
  panic(err)
 }
 settings.SetString("c1", "value1")

 fmt.Println(settings.String("c1"))
}

Installation

Install my-project with go get

go get -u github.com/Tom5521/goconf@latest

License

MIT

About

A preferences API similar to fyne, but without a trace of it.

Resources

License

Stars

Watchers

Forks

Languages