infocard

package
v1.85.7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: AGPL-3.0, AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XmlToText

func XmlToText(raw string) ([]string, error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) GetDicts added in v1.80.0

func (c *Config) GetDicts(callback func(config *UnsafeConfig))

func (*Config) GetInfocard added in v1.80.0

func (c *Config) GetInfocard(id int) *Infocard

func (*Config) GetInfocard2 added in v1.80.0

func (c *Config) GetInfocard2(id int) (*Infocard, bool)

func (*Config) GetInfoname added in v1.80.0

func (c *Config) GetInfoname(id int) Infoname

func (*Config) GetInfoname2 added in v1.80.0

func (c *Config) GetInfoname2(id int) (Infoname, bool)

func (*Config) GetUnsafe added in v1.80.0

func (c *Config) GetUnsafe() *UnsafeConfig

func (*Config) PutInfocard added in v1.80.0

func (c *Config) PutInfocard(id int, value *Infocard)

func (*Config) PutInfoname added in v1.80.0

func (c *Config) PutInfoname(id int, value Infoname)

type Infocard

type Infocard struct {
	Lines []string
	// contains filtered or unexported fields
}

func NewInfocard

func NewInfocard(content string) *Infocard

func (*Infocard) GetContent added in v1.61.4

func (i *Infocard) GetContent() string

func (*Infocard) XmlToText added in v1.61.4

func (i *Infocard) XmlToText() ([]string, error)

type Infoname

type Infoname string

type RecordKind

type RecordKind string
const (
	TYPE_NAME    RecordKind = "NAME"
	TYPE_INFOCAD RecordKind = "INFOCARD"
)

type UnsafeConfig added in v1.80.0

type UnsafeConfig struct {
	Infonames map[int]Infoname
	Infocards map[int]*Infocard
	Mutex     *sync.RWMutex
}

Jump to

Keyboard shortcuts

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