tags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnterminatedString = errors.New("unterminated string")

Functions

func TagScanner

func TagScanner(tagString string) (tags map[string]string, err error)

Types

type DocTags

type DocTags map[string]string

func ParseTags

func ParseTags(docs []string) (tags DocTags)

func (DocTags) Contains

func (tags DocTags) Contains(word string) (found bool)

func (DocTags) IsSet

func (tags DocTags) IsSet(tagName string) (found bool)

func (DocTags) MarshalJSON

func (tags DocTags) MarshalJSON() (bytes []byte, err error)

func (DocTags) Merge

func (tags DocTags) Merge(t DocTags) DocTags

func (DocTags) ToKeys

func (tags DocTags) ToKeys(tagName, separator string, defValue ...string) map[string]int

func (DocTags) ToMap

func (tags DocTags) ToMap(tagName, separator, splitter string, defValue ...string) (m map[string]string)

func (DocTags) Value

func (tags DocTags) Value(tagName string, defValue ...string) (value string)

Jump to

Keyboard shortcuts

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