allow

package
v0.15.16-0...-9fff2f5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryName

func QueryName(b string) string

Types

type Config

type Config struct {
	CreateIfNotExists bool
	Persist           bool
	Log               *log.Logger
}

type Item

type Item struct {
	Name string

	Query   string
	Vars    string
	Comment string
	// contains filtered or unexported fields
}

type List

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

func New

func New(filename string, conf Config) (*List, error)

func (*List) IsPersist

func (al *List) IsPersist() bool

func (*List) Load

func (al *List) Load() ([]Item, error)

func (*List) Set

func (al *List) Set(vars []byte, query, comment string) error

Jump to

Keyboard shortcuts

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