config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	LoadFullPath(filePath string, data interface{}) error
	SaveFullPath(filePath string, data interface{}) error
	Load(filePath, fileName string, data interface{}, save ...bool) error
	Save(filePath, fileName string, data interface{}) error
}

type YMLConfig

type YMLConfig struct {
}

func (*YMLConfig) Load

func (c *YMLConfig) Load(filePath, fileName string, data interface{}, save ...bool) error

func (*YMLConfig) LoadFullPath

func (c *YMLConfig) LoadFullPath(filePath string, data interface{}) error

func (*YMLConfig) Save

func (c *YMLConfig) Save(filePath, fileName string, data interface{}) error

func (*YMLConfig) SaveFullPath

func (c *YMLConfig) SaveFullPath(filePath string, data interface{}) error

Jump to

Keyboard shortcuts

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