file package - github.com/masnyjimmy/gofig/provider/file - Go Packages

file

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserFn

type ParserFn = func(data []byte) (gofig.Records, error)

type Provider

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

func New

func New() *Provider

func (*Provider) AddFiles

func (p *Provider) AddFiles(filename ...string) *Provider

func (*Provider) SetFiles

func (p *Provider) SetFiles(filename ...string) *Provider

func (*Provider) SetParser

func (p *Provider) SetParser(parser ParserFn) *Provider

func (*Provider) SetRoot

func (p *Provider) SetRoot(root string) *Provider

func (*Provider) Source

func (p *Provider) Source() (gofig.Source, error)

Jump to

Keyboard shortcuts

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