src2struct

package module
v0.0.0-...-9d43487 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

go-src2struct

Load source into a struct

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFileYaml

func LoadFileYaml(logger *log.Entry, yamlFile string, data interface{}) error

LoadFileYaml will load a Yaml file and unmarshal it into the provided interface

func LoadUrlJson

func LoadUrlJson(logger *log.Entry, options *Options, url string, data interface{}) error

LoadFileYaml will load a Yaml file and unmarshal it into the provided interface

Types

type Options

type Options struct {
	Client             *http.Client
	Header             *http.Header
	IncludeBodyInError bool
}

Jump to

Keyboard shortcuts

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