taginfo

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package taginfo contains tag info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(extras ...map[string][]*Taginfo) map[string][]*Taginfo

All loads all embedded tag info and any passed extras.

func AllBytes

func AllBytes() []byte

AllBytes returns embedded tag info in csv format.

func Load

func Load(rdr io.Reader) (map[string][]*Taginfo, error)

Load loads a set of csv tag info from the reader.

func LoadAll

func LoadAll() (map[string][]*Taginfo, error)

LoadAll loads all embedded tag info.

func LoadBytes

func LoadBytes(buf []byte) (map[string][]*Taginfo, error)

LoadBytes loads csv tag info from buf.

func LoadFile

func LoadFile(file string) (map[string][]*Taginfo, error)

LoadFile loads csv tag info from a file.

func MustLoadBytes

func MustLoadBytes(buf []byte) map[string][]*Taginfo

MustLoadBytes loads csv tag info from buf.

func MustLoadFile

func MustLoadFile(file string) map[string][]*Taginfo

MustLoadFile loads csv tag info from a file.

func RegisterType

func RegisterType(typ string, i int)

RegisterType registers release types.

Types

type FindFunc

type FindFunc func(string) *Taginfo

FindFunc is the find signature..

func Find

func Find(infos ...*Taginfo) FindFunc

Find returns a func to find tag info.

type Taginfo

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

Taginfo describes tag info.

func Must

func Must(strs ...string) *Taginfo

Must creates a new tag info.

func New

func New(strs ...string) (*Taginfo, error)

New creates a new tag info.

func (*Taginfo) Excl

func (info *Taginfo) Excl() bool

Excl returns the tag info excl.

func (*Taginfo) Match

func (info *Taginfo) Match(s string) bool

Match matches the tag info to s.

func (*Taginfo) Other

func (info *Taginfo) Other() string

Other returns the tag info other.

func (*Taginfo) RE

func (info *Taginfo) RE() string

RE returns the tag info regexp string.

func (*Taginfo) Regexp

func (info *Taginfo) Regexp() string

Regexp returns the tag info regexp.

func (*Taginfo) Tag

func (info *Taginfo) Tag() string

Tag returns the tag info tag.

func (*Taginfo) Title

func (info *Taginfo) Title() string

Title returns the tag info title.

func (*Taginfo) Type

func (info *Taginfo) Type() int

Type returns the tag info type.

Jump to

Keyboard shortcuts

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