tag

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2016 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOK

func IsOK(val string) bool

IsOK return true is val is ok.

Types

type Slice

type Slice []*Tag

Slice is a slice of *Tag.

func NewSlice

func NewSlice(values []string) Slice

NewSlice create TagList obj and adds tags tagstr=value.

func (Slice) GetTagstrSlice

func (t Slice) GetTagstrSlice() []string

GetTagstrSlice returns tagstr slice of tags.

func (Slice) Len

func (t Slice) Len() int

Len returns size of tags.

func (Slice) Less

func (t Slice) Less(i, j int) bool

Less is true if weight[i]< weigt[j]

func (Slice) String

func (t Slice) String() string

String concatenates and returns tagstr of tags.

func (Slice) Swap

func (t Slice) Swap(i, j int)

Swap swaps tag order.

type Tag

type Tag struct {
	Tagstr string
	// contains filtered or unexported fields
}

Tag represents one tag.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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