sconf.v0: gopkg.in/sconf/sconf.v0 Index | Examples | Files

package sconf

import "gopkg.in/sconf/sconf.v0"

Code:

var cfg = struct {
    Main struct {
        Url string
    }
}{}
sconf.Must(&cfg).Read(ini.File("testdata/example.ini"))
fmt.Println(cfg.Main.Url)

Output:

http://localhost/

Index

Examples

Package Files

sconf.go

func Must Uses

func Must(ptr interface{}) internal.Struct

Package sconf imports 2 packages (graph). Updated 2019-03-11. Refresh now. Tools for package owners.