gjsonconfig

package
v0.0.0-...-04ff805 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() (string, error)

DefaultConfig same dir same name.

func DefaultMarshal

func DefaultMarshal(v interface{}) error

DefaultMarshal set same dir same name .json config file and marshal from a struct v is a pointer to structure

func DefaultUnmarshal

func DefaultUnmarshal(v interface{}) error

DefaultUnmarshal read same dir same name .json config file and unmarshal to a struct v is a pointer to structure

func Marshal

func Marshal(filename string, v interface{}) error

func Unmarshal

func Unmarshal(filename string, v interface{}) error

Unmarshal read same dir json conf file and unmarshal to a struct shortfn example: "*.json"

Types

This section is empty.

Jump to

Keyboard shortcuts

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