yamlconfig

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

a simple yaml config load and save function package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(pv interface{}, fname string) error

load configure `fname` to an `pv` interface{} @return: error @detail: if `fname` is empty, it will auto get`${applicationName}.yml`

func LoadMem

func LoadMem(pv interface{}, memBytes []byte) error

load configure `memBytes` to an `pv` interface{} @return: error

func Save

func Save(v interface{}, fname string) error

save configure to `fname` @return: error @detail: if `fname` is empty, it will auto get`${applicationName}.yml`

Types

This section is empty.

Jump to

Keyboard shortcuts

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