Skip to content

onedaycat/goconf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goconf

GoDoc Build Status Coverage Status Go Report Card

Combine yaml and environment config

Features

Installation

go get github.com/onedaycat/goconf

Struct Tags

type SampleA struct {
	A               string
	CamelCase       bool 
	ManualOverride1 string 
	SplitWord1      string `default:"split"`
	ID              string 
	DefaultValue    string 
}

Example

type Sample struct {
  Value string
}


sample := &Sample{}
goconf.Parse("PREFIX", sample)

Packages

No packages published

Languages

  • Go 100.0%