tagging

package
v0.0.0-...-c6a0b50 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoredDirs = []string{".git", ".DS_Store", ".idea"}

Functions

This section is empty.

Types

type ITagGroup

type ITagGroup interface {
	InitTagGroup(path string, skippedTags []string, explicitlySpecifiedTags []string, options ...InitTagGroupOption)
	CreateTagsForBlock(block structure.IBlock) error
	GetTags() []tags.ITag
	GetDefaultTags() []tags.ITag
}

type InitTagGroupOption

type InitTagGroupOption func(opt *InitTagGroupOptions)

func WithTagPrefix

func WithTagPrefix(s string) InitTagGroupOption

type InitTagGroupOptions

type InitTagGroupOptions struct {
	TagPrefix string
}

type TagGroup

type TagGroup struct {
	SkippedTags   []string
	Dir           string
	SpecifiedTags []string
	Options       InitTagGroupOptions
	// contains filtered or unexported fields
}

func (*TagGroup) GetSkippedDirs

func (t *TagGroup) GetSkippedDirs() []string

func (*TagGroup) GetTags

func (t *TagGroup) GetTags() []tags.ITag

func (*TagGroup) IsTagSkipped

func (t *TagGroup) IsTagSkipped(tag tags.ITag) bool

func (*TagGroup) SetTags

func (t *TagGroup) SetTags(tags []tags.ITag)

func (*TagGroup) UpdateBlockTags

func (t *TagGroup) UpdateBlockTags(block structure.IBlock, data interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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