loader

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 2 Imported by: 0

README

loader

go golang load yaml json toml from file or http ,also support from env use struct tag

only support map[string]interface{} or struct

Documentation

Overview

# loader go golang load yaml json toml from file or http ,also support from env use struct tag

Index

Constants

This section is empty.

Variables

View Source
var Parse = utils.Parse

Functions

This section is empty.

Types

type A

type A struct {
	Config
}

type Config

type Config = utils.Config

type Loader

type Loader struct {
	Config *Config
}

func Load

func Load(config *Config, i interface{}, paths ...string) (*Loader, error)

func New

func New(config *Config) *Loader

func (*Loader) Load

func (loader *Loader) Load(i interface{}, paths ...string) (*Loader, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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