Skip to content

⚙ generic helper library for configurations ⚙

License

Notifications You must be signed in to change notification settings

lakesite/ls-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config

⚙ generic helper library for configurations ⚙

This config package is used by different packages and projects at Lakesite.Net

usage

package main

import (
	"fmt"

	"github.com/lakesite/ls-config"
)

func main() {
	address := config.Getenv("APP_HOST", "127.0.0.1") + ":" + config.Getenv("APP_PORT", "7999")
	cwd := config.GetWorkingDirectory()
	fmt.Printf("Address: %s\n", address)
	fmt.Printf("CWD: %s\n", cwd)
}

testing

$ go test

running

$ go run examples/main.go

license

MIT

About

⚙ generic helper library for configurations ⚙

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages