flagger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATE = "date"
	NAME = "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonFlagger

type CommonFlagger struct {
	FlagCheckerObj FlagChecker
}

func NewFlagger

func NewFlagger(flaggerType string, name string, dateFormat string) *CommonFlagger

func (*CommonFlagger) RemoveFlag

func (flagger *CommonFlagger) RemoveFlag(body []ast.Stmt) (bool, []ast.Stmt)

type DateFlagChecker

type DateFlagChecker struct {
	DateFormat string
}

func (*DateFlagChecker) IsValidFlag

func (dateFlagger *DateFlagChecker) IsValidFlag(conditions []string) bool

type FlagChecker

type FlagChecker interface {
	IsValidFlag(conditions []string) bool
}

type NameFlagChecker

type NameFlagChecker struct {
	Name string
}

func (*NameFlagChecker) IsValidFlag

func (NameFlagChecker *NameFlagChecker) IsValidFlag(conditions []string) bool

Jump to

Keyboard shortcuts

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