configo

package module
v0.0.0-...-b841a57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 21 Imported by: 0

README

{{ .Project.Name }}

help wanted [![godoc reference](https://godoc.org/{{ .PackageUrl }}?status.svg)](https://godoc.org/{{ .PackageUrl }}) [![Go Report Card](https://goreportcard.com/badge/{{ .PackageUrl }})](https://goreportcard.com/report/{{ .PackageUrl }}) [license MIT](https://{{ .PackageUrl }}/blob/master/README.md) chat telegram version v1.0.0 unstable

english [русский](https://{{ .PackageUrl }}/blob/master/doc/ru_RU/README.md)

{{ .Title.Text }}

Getting started

TODO

How to use

![preview]({{ .PreviewUrl }})

Code examples are [here](https://{{ .PackageUrl }}/blob/master/examples)

Simple How-To

{{ .AdditionalHowto }}

{{ .SimpleFAQ }}

Contributing

Please read [contributing guide](https://{{ .PackageUrl }}/blob/master/doc/en_US/CONTRIBUTING.md) if you want to help. And the help is very necessary!

TODO

{{ range $item := .TODO }}* {{ $item }} {{ end }}

Authors

{{ range $author := .Authors }}* {{ $author.Name }} — [{{ $author.Nick }}](https://github.com/{{ $author.Nick }}) {{ end }}

License

This project is licensed under the MIT License - see the [LICENSE](https://{{ .PackageUrl }}/blob/master/doc/en_US/LICENSE.md) file for details

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigScheme interface{}
)

Functions

func CastValue

func CastValue(src, dst reflect.Value)

func Init

func Init(appName string) (interface{}, error)

func InitConfig

func InitConfig(appName, userRunned string, into interface{}) error

func InitConfigWithExplicitConfigPaths

func InitConfigWithExplicitConfigPaths(appName, globalPath, localPath string, into interface{}) error

DEPRECATED: No, seriously, this is just for examples and testing. Use only InitConfig, it do all job for you

func ParseConfig

func ParseConfig(appName string, cfg interface{}) error

func ParseDir

func ParseDir(path string, into interface{}) error

func ParseEnvFile

func ParseEnvFile(path, prefix string, into interface{}) error

Types

type ErrInvalidSpec

type ErrInvalidSpec struct{}

func (*ErrInvalidSpec) Error

func (e *ErrInvalidSpec) Error() string

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL