Skip to content

kyokomi/appConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appConfig

Build Status Coverage Status

=========

homedir read write to app config file for golang ( Go )

Example

source

package main

import (
	"github.com/kyokomi/appConfig"
	"bytes"
	"log"
	"fmt"
)

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))
}

Install

$ go get github.com/kyokomi/appConfig

License

MIT

Author

kyokomi

About

homedir read write to app config file for golang ( Go )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages