solestring

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 4 Imported by: 0

README

solestring

The solestring package provides the means for storing a string in memory only once.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore() *Store

func (*Store) Close

func (o *Store) Close()

func (*Store) LoadOrStore

func (o *Store) LoadOrStore(s string) (actual String, loaded bool)

type String

type String uint64

func (String) Value

func (s String) Value() string

Jump to

Keyboard shortcuts

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