cfile

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfigFile

type IConfigFile interface {
	// ConfigFile returns the configuration file path.
	ConfigFile() string

	// CheckConfigFile checks if the configuration file is exists.
	CheckConfigFile() bool

	// Reader reads the configuration file.
	Reader() (IReader, error)

	// Writer writes the given data to the configuration file.
	Writer(data interface{}) (string, error)
}

func New

func New(file string) IConfigFile

type IReader

type IReader interface {
	// Decode decodes the configuration file content to given interface.
	Decode(d interface{}) error
}

type ReaderResult

type ReaderResult struct {
	// contains filtered or unexported fields
}

func (*ReaderResult) Decode

func (rr *ReaderResult) Decode(d interface{}) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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