infocard

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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