stringinterner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2str

func Bytes2str(b []byte) string

func InternSafe

func InternSafe(s string) string

func InternSafeBytes

func InternSafeBytes(b []byte) string

func InternUnsafe

func InternUnsafe(s string) string

Warning thread unsafe

Types

type PooledStringInterner

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

Pooled StringInterner For Mutable Scenario

func (*PooledStringInterner) Bytes

func (psi *PooledStringInterner) Bytes(b []byte) string

func (*PooledStringInterner) String

func (psi *PooledStringInterner) String(s string) string

type SingleStringInterner

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

Single StringInterner For Inmutable Scenario

Jump to

Keyboard shortcuts

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