marker

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeFull = Type(iota)
	TypeFile
	TypeDir
)

Variables

View Source
var ErrorUnknownType = errors.New("unknown marker type")

Functions

func Write

func Write(ctx context.Context, t Type, markerFile, outFile string) (err error)

Types

type Type

type Type int

func (Type) MarshalText

func (t Type) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (Type) String

func (t Type) String() string

String implements the fmt.Stringer interface.

func (*Type) UnmarshalText

func (t *Type) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

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