utils

package
v0.0.0-...-6c651f3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIPDateFormat = "20060102    150405"
)

Variables

View Source
var REPLACER *strings.Replacer

Functions

func AppendChecksum

func AppendChecksum(msg string) string

func ComputeChecksum

func ComputeChecksum(msg string) string

func ConfigureEscapeCharacters

func ConfigureEscapeCharacters(chars ...rune)

func EscapeSIP

func EscapeSIP(text string) string

func ExtractFields

func ExtractFields(line string, delimiter rune, fields map[string]string) map[string]string

func ExtractMultiFields

func ExtractMultiFields(line string, delimiter rune, fields map[string][]string) map[string][]string

func GenerateLineScanner

func GenerateLineScanner(terminator rune) func([]byte, bool) (int, []byte, error)

func GenerateSIPValidatorFunc

func GenerateSIPValidatorFunc(badChars string) func(validator.FieldLevel) bool

func IncrementSeqNum

func IncrementSeqNum(seqNum int) int

func ParseBool

func ParseBool(char rune) bool

func YorBlank

func YorBlank(field bool) string

func YorN

func YorN(field bool) string

func ZeroOrOne

func ZeroOrOne(field bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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