status

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OK                     = newStatus("ok")
	Unchanged              = newStatus("unchanged")
	Overwriting            = newStatus("overwriting")
	EmptyFilename          = newStatus("empty_filename")
	TrailingPeriod         = newStatus("trailing_periods_present")
	PathExists             = newStatus("target_exists")
	OverwritingNewPath     = newStatus("overwriting_new_path")
	ForbiddenCharacters    = newStatus("forbidden_characters_present")
	FilenameLengthExceeded = newStatus("filename_too_long")
	SourceAlreadyRenamed   = newStatus("source_already_renamed")
	SourceNotFound         = newStatus("source_not_found")
	Ignored                = newStatus("ignored")
)

Functions

This section is empty.

Types

type Status

type Status struct {
	ID      string
	Message string
}

func (Status) Append added in v2.2.2

func (s Status) Append(str string) Status

Append returns an updated Status with the provided string appended to the original status message.

func (Status) MarshalJSON added in v2.2.0

func (s Status) MarshalJSON() ([]byte, error)

func (Status) String added in v2.2.0

func (s Status) String() string

func (*Status) UnmarshalJSON added in v2.2.0

func (s *Status) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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