user

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(thread string, tag []string)

Add saves tag strings.

func AddTX added in v0.2.0

func AddTX(tx *bolt.Tx, thread string, tag []string) error

AddTX saves tag strings.

func Get

func Get() tag.Slice

Get tags from the disk and returns Slice.

func GetByThread

func GetByThread(thread string) tag.Slice

GetByThread gets thread tags from the disk

func GetStrings

func GetStrings(thread string) []string

GetStrings gets thread tags from the disk

func Has

func Has(thread string, tag ...string) bool

Has returns true if thread has the tag.

func Len

func Len(thread string) int

Len returns # of usertags.

func Set

func Set(thread string, tag []string)

Set remove all tags and saves tag strings.

func String

func String(thread string) string

String returns string form of usertags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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