config

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

File defines a config file

func New

func New(fp string, c interface{}, updated func()) (*File, error)

New creates a new config file and starts watching for changes filepath is the JSON formatted file to monitor c is the interface to attempt to marshal the file into updated is called when there are updates to the file

func (*File) Close

func (f *File) Close()

Close the FileConfig and remove all watchers

Jump to

Keyboard shortcuts

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