symbol

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface{ Get(uint32) (string, error) }

Getter interface abstract hash-table required to achieve probing

type Hash

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

The hash function is collision resistent double hashing https://en.wikipedia.org/wiki/Double_hashing

func NewHash

func NewHash(getter Getter) Hash

Creates new instance of hash function

func (Hash) String

func (h Hash) String(s string) (uint32, error)

Hashes string returning either value or error

type Map

type Map interface {
	SymbolOf(string) (xsd.Symbol, error)
	ValueOf(s xsd.Symbol) string
}

Abstract notion of xsd.Symbol map

func New

func New() Map

Create instance of in-memory symbols table

Jump to

Keyboard shortcuts

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