statictoml

package
v0.0.0-...-9b96405 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSuffixError = errors.New("statictoml: toml source must end with " + Suffix)

ErrSuffixError error raised when source path suffix error

View Source
var FileMode = os.FileMode(0700)

FileMode source data file mode.

View Source
var Suffix = ".static.toml"

Suffix static toml path suffix

Functions

This section is empty.

Types

type Source

type Source string

Source static toml data source.

func (Source) Abs

func (s Source) Abs() (Source, error)

func (Source) Load

func (s Source) Load(v interface{}) error

Load value from source.

func (Source) Save

func (s Source) Save(v interface{}) error

Save value to source.

func (Source) Verify

func (s Source) Verify() error

Verify check source path validity

func (Source) VerifyWithExample

func (s Source) VerifyWithExample(example Source) error

Jump to

Keyboard shortcuts

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