Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

stugotech/goconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

goconfig

An interface to retrieve config in GO.

The interface looks like this:

type Config interface {
  Get(key string) interface{}
  GetBool(key string) bool
  GetInt(key string) int
  GetFloat64(key string) float64
  GetString(key string) string
  GetStringMap(key string) map[string]interface{}
  GetStringMapString(key string) map[string]string
  GetStringSlice(key string) []string
  GetTime(key string) time.Time
  GetDuration(key string) time.Duration
  IsSet(key string) bool
}

The easiest way of satisfying this interface is to use viper.

About

An interface to get config in GO.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages