MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / TextWithLang

Struct TextWithLang

value.go:592–594  ·  view source on GitHub ↗

TextWithLang is the Value that represents a combination of two strings: - text on some natural language (i.e., "hello") - name of that language (i.e., "en") Use with: TagTextLang, TagNameLang

Source from the content-addressed store, hash-verified

590//
591// Use with: TagTextLang, TagNameLang
592type TextWithLang struct {
593 Lang, Text string // Language and text
594}
595
596// String converts TextWithLang value to string
597func (v TextWithLang) String() string { return v.Text + " [" + v.Lang + "]" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected