Documentation
¶
Overview ¶
Package internal provides internal implementation for the info test command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PositionList = []Position{PositionMiddle, PositionLeft, PositionRight}
PositionList contains all valid positions
Functions ¶
This section is empty.
Types ¶
type ControlResult ¶
type ControlResult struct {
Text string `json:"-"`
WriteError map[Position]string
GetError map[Position]string
InList map[Position]Presence
}
ControlResult contains the result of a single character test
type InfoReport ¶
type InfoReport struct {
Remote string
ControlCharacters *map[string]ControlResult
MaxFileLength *int
CanStream *bool
CanWriteUnnormalized *bool
CanReadUnnormalized *bool
CanReadRenormalized *bool
}
InfoReport is the structure of the JSON output
type Position ¶
type Position int
Position is the placement of the test character in the filename
const ( PositionMiddle Position = 1 << iota PositionLeft PositionRight PositionNone Position = 0 PositionAll Position = PositionRight<<1 - 1 )
Predefined positions
func (Position) MarshalText ¶
MarshalText encodes the position when used as a map key
func (*Position) UnmarshalText ¶
UnmarshalText decodes a position when used as a map key
type Presence ¶
type Presence int
Presence describes the presence of a filename in file listing
func (Presence) MarshalJSON ¶
MarshalJSON encodes the presence when used as a JSON value
func (*Presence) UnmarshalJSON ¶
UnmarshalJSON decodes a presence when used as a JSON value
Click to show internal directories.
Click to hide internal directories.