cp

package
v0.0.0-...-3974014 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CP

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

CP has the items in a constant pool.

func New

func New() *CP

New creates a new constant pool.

func (*CP) Add

func (cp *CP) Add(item interface{}) int

Add adds a new item to the constant pool.

func (*CP) Find

func (cp *CP) Find(item interface{}) int

Find finds if a specific item is at the constant pool.

func (*CP) Get

func (cp *CP) Get(index int) (interface{}, error)

Get gets an item from the constant pool.

Jump to

Keyboard shortcuts

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