stringinterner

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyStr = ""
)

Variables

This section is empty.

Functions

func InternSafe

func InternSafe(s string) string

InternSafe store key

func InternTagValue added in v1.0.0

func InternTagValue(s string) string

InternTagValue store value

Types

type SingleStringInterner

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

Single StringInterner For Inmutable Scenario

type StringDict added in v1.4.0

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

func NewStringDict added in v1.4.0

func NewStringDict() *StringDict

func (*StringDict) LoadIndex added in v1.4.0

func (s *StringDict) LoadIndex(key string) uint64

func (*StringDict) LoadValue added in v1.4.0

func (s *StringDict) LoadValue(key int) string

Jump to

Keyboard shortcuts

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