txtutil

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCombined added in v4.7.0

func EncodeCombined(t string) string

func EncodeQuoted added in v4.7.0

func EncodeQuoted(t string) string

func ParseCombined added in v4.7.0

func ParseCombined(s string) (string, error)

func ParseQuoted added in v4.7.0

func ParseQuoted(s string) (string, error)

func Segment added in v4.6.1

func Segment(s string) []string

Segment returns the string as 255-octet segments, the last being the remainder.

func SplitSingleLongTxt

func SplitSingleLongTxt(records any)

SplitSingleLongTxt does nothing. Deprecated: This is a no-op for backwards compatibility.

func ToChunks added in v4.7.0

func ToChunks(s string) []string

ToChunks returns the string as chunks of 255-octet strings (the last string being the remainder).

Types

type State added in v4.7.0

type State int
const (
	StateStart     State = iota // Looking for a non-space
	StateUnquoted               // A run of unquoted text
	StateQuoted                 // Quoted text
	StateBackslash              // last char was backlash in a quoted string
	StateWantSpace              // expect space after closing quote
)

Jump to

Keyboard shortcuts

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