Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 562 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 562 Bytes

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