Skip to content

gotoolkit/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/gotoolkit/config Go項目參數配置

Install

go get -u github.com/gotoolkit/config

Example

mkdir -p config
echo '{"hello":"world"}' > config/config.json
package main

import (
    "log"

    "github.com/gotoolkit/config"
)

func main() {
    err := config.Setup(config.WithWatchEnable(true))
	if err != nil {
		log.Fatalln(err)
    }
    
    log.Println(config.Get("hello"))
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages