file

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = core.Name

Variables

This section is empty.

Functions

func NewSource

func NewSource(opts ...Option) config.Source

Types

type Option

type Option func(o *options)

func WithMode

func WithMode(mode config.Mode) Option

WithMode 设置读写模式

func WithPath

func WithPath(path string) Option

WithPath 设置配置文件或配置目录路径

type Source

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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