colony

package module
Version: v0.0.0-...-926dc50 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: MIT Imports: 3 Imported by: 0

README

go-colony

PLF::Colony in Go (with type safety and code generation)

Usage

# Install genny
go get github.com/cheekybits/genny
# Install go-colony
go get github.com/20zinnm/go-colony
# Generate a colony for a type
genny -in=/Path/to/go/src/github.com/20zinnm/go-colony/colony.go -out=[output_file_name] -pkg=[package] gen "Type=Position"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolColony

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

BoolColony represents a colony of Bools.

func NewBoolColony

func NewBoolColony(size uint) *BoolColony

NewBoolColony returns a new colony of Bools.

func (*BoolColony) Delete

func (c *BoolColony) Delete(tp *bool)

Delete returns a pointer to the colony.

func (*BoolColony) Insert

func (c *BoolColony) Insert(t *bool) (tp *bool)

Insert returns a pointer from the colony and initializes it with the provided data.

type ByteColony

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

ByteColony represents a colony of Bytes.

func NewByteColony

func NewByteColony(size uint) *ByteColony

NewByteColony returns a new colony of Bytes.

func (*ByteColony) Delete

func (c *ByteColony) Delete(tp *byte)

Delete returns a pointer to the colony.

func (*ByteColony) Insert

func (c *ByteColony) Insert(t *byte) (tp *byte)

Insert returns a pointer from the colony and initializes it with the provided data.

type Complex128Colony

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

Complex128Colony represents a colony of Complex128s.

func NewComplex128Colony

func NewComplex128Colony(size uint) *Complex128Colony

NewComplex128Colony returns a new colony of Complex128s.

func (*Complex128Colony) Delete

func (c *Complex128Colony) Delete(tp *complex128)

Delete returns a pointer to the colony.

func (*Complex128Colony) Insert

func (c *Complex128Colony) Insert(t *complex128) (tp *complex128)

Insert returns a pointer from the colony and initializes it with the provided data.

type Complex64Colony

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

Complex64Colony represents a colony of Complex64s.

func NewComplex64Colony

func NewComplex64Colony(size uint) *Complex64Colony

NewComplex64Colony returns a new colony of Complex64s.

func (*Complex64Colony) Delete

func (c *Complex64Colony) Delete(tp *complex64)

Delete returns a pointer to the colony.

func (*Complex64Colony) Insert

func (c *Complex64Colony) Insert(t *complex64) (tp *complex64)

Insert returns a pointer from the colony and initializes it with the provided data.

type ErrorColony

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

ErrorColony represents a colony of Errors.

func NewErrorColony

func NewErrorColony(size uint) *ErrorColony

NewErrorColony returns a new colony of Errors.

func (*ErrorColony) Delete

func (c *ErrorColony) Delete(tp *error)

Delete returns a pointer to the colony.

func (*ErrorColony) Insert

func (c *ErrorColony) Insert(t *error) (tp *error)

Insert returns a pointer from the colony and initializes it with the provided data.

type Float32Colony

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

Float32Colony represents a colony of Float32s.

func NewFloat32Colony

func NewFloat32Colony(size uint) *Float32Colony

NewFloat32Colony returns a new colony of Float32s.

func (*Float32Colony) Delete

func (c *Float32Colony) Delete(tp *float32)

Delete returns a pointer to the colony.

func (*Float32Colony) Insert

func (c *Float32Colony) Insert(t *float32) (tp *float32)

Insert returns a pointer from the colony and initializes it with the provided data.

type Float64Colony

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

Float64Colony represents a colony of Float64s.

func NewFloat64Colony

func NewFloat64Colony(size uint) *Float64Colony

NewFloat64Colony returns a new colony of Float64s.

func (*Float64Colony) Delete

func (c *Float64Colony) Delete(tp *float64)

Delete returns a pointer to the colony.

func (*Float64Colony) Insert

func (c *Float64Colony) Insert(t *float64) (tp *float64)

Insert returns a pointer from the colony and initializes it with the provided data.

type Int16Colony

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

Int16Colony represents a colony of Int16s.

func NewInt16Colony

func NewInt16Colony(size uint) *Int16Colony

NewInt16Colony returns a new colony of Int16s.

func (*Int16Colony) Delete

func (c *Int16Colony) Delete(tp *int16)

Delete returns a pointer to the colony.

func (*Int16Colony) Insert

func (c *Int16Colony) Insert(t *int16) (tp *int16)

Insert returns a pointer from the colony and initializes it with the provided data.

type Int32Colony

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

Int32Colony represents a colony of Int32s.

func NewInt32Colony

func NewInt32Colony(size uint) *Int32Colony

NewInt32Colony returns a new colony of Int32s.

func (*Int32Colony) Delete

func (c *Int32Colony) Delete(tp *int32)

Delete returns a pointer to the colony.

func (*Int32Colony) Insert

func (c *Int32Colony) Insert(t *int32) (tp *int32)

Insert returns a pointer from the colony and initializes it with the provided data.

type Int64Colony

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

Int64Colony represents a colony of Int64s.

func NewInt64Colony

func NewInt64Colony(size uint) *Int64Colony

NewInt64Colony returns a new colony of Int64s.

func (*Int64Colony) Delete

func (c *Int64Colony) Delete(tp *int64)

Delete returns a pointer to the colony.

func (*Int64Colony) Insert

func (c *Int64Colony) Insert(t *int64) (tp *int64)

Insert returns a pointer from the colony and initializes it with the provided data.

type Int8Colony

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

Int8Colony represents a colony of Int8s.

func NewInt8Colony

func NewInt8Colony(size uint) *Int8Colony

NewInt8Colony returns a new colony of Int8s.

func (*Int8Colony) Delete

func (c *Int8Colony) Delete(tp *int8)

Delete returns a pointer to the colony.

func (*Int8Colony) Insert

func (c *Int8Colony) Insert(t *int8) (tp *int8)

Insert returns a pointer from the colony and initializes it with the provided data.

type IntColony

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

IntColony represents a colony of Ints.

func NewIntColony

func NewIntColony(size uint) *IntColony

NewIntColony returns a new colony of Ints.

func (*IntColony) Delete

func (c *IntColony) Delete(tp *int)

Delete returns a pointer to the colony.

func (*IntColony) Insert

func (c *IntColony) Insert(t *int) (tp *int)

Insert returns a pointer from the colony and initializes it with the provided data.

type RuneColony

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

RuneColony represents a colony of Runes.

func NewRuneColony

func NewRuneColony(size uint) *RuneColony

NewRuneColony returns a new colony of Runes.

func (*RuneColony) Delete

func (c *RuneColony) Delete(tp *rune)

Delete returns a pointer to the colony.

func (*RuneColony) Insert

func (c *RuneColony) Insert(t *rune) (tp *rune)

Insert returns a pointer from the colony and initializes it with the provided data.

type StringColony

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

StringColony represents a colony of Strings.

func NewStringColony

func NewStringColony(size uint) *StringColony

NewStringColony returns a new colony of Strings.

func (*StringColony) Delete

func (c *StringColony) Delete(tp *string)

Delete returns a pointer to the colony.

func (*StringColony) Insert

func (c *StringColony) Insert(t *string) (tp *string)

Insert returns a pointer from the colony and initializes it with the provided data.

type Uint16Colony

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

Uint16Colony represents a colony of Uint16s.

func NewUint16Colony

func NewUint16Colony(size uint) *Uint16Colony

NewUint16Colony returns a new colony of Uint16s.

func (*Uint16Colony) Delete

func (c *Uint16Colony) Delete(tp *uint16)

Delete returns a pointer to the colony.

func (*Uint16Colony) Insert

func (c *Uint16Colony) Insert(t *uint16) (tp *uint16)

Insert returns a pointer from the colony and initializes it with the provided data.

type Uint32Colony

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

Uint32Colony represents a colony of Uint32s.

func NewUint32Colony

func NewUint32Colony(size uint) *Uint32Colony

NewUint32Colony returns a new colony of Uint32s.

func (*Uint32Colony) Delete

func (c *Uint32Colony) Delete(tp *uint32)

Delete returns a pointer to the colony.

func (*Uint32Colony) Insert

func (c *Uint32Colony) Insert(t *uint32) (tp *uint32)

Insert returns a pointer from the colony and initializes it with the provided data.

type Uint64Colony

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

Uint64Colony represents a colony of Uint64s.

func NewUint64Colony

func NewUint64Colony(size uint) *Uint64Colony

NewUint64Colony returns a new colony of Uint64s.

func (*Uint64Colony) Delete

func (c *Uint64Colony) Delete(tp *uint64)

Delete returns a pointer to the colony.

func (*Uint64Colony) Insert

func (c *Uint64Colony) Insert(t *uint64) (tp *uint64)

Insert returns a pointer from the colony and initializes it with the provided data.

type Uint8Colony

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

Uint8Colony represents a colony of Uint8s.

func NewUint8Colony

func NewUint8Colony(size uint) *Uint8Colony

NewUint8Colony returns a new colony of Uint8s.

func (*Uint8Colony) Delete

func (c *Uint8Colony) Delete(tp *uint8)

Delete returns a pointer to the colony.

func (*Uint8Colony) Insert

func (c *Uint8Colony) Insert(t *uint8) (tp *uint8)

Insert returns a pointer from the colony and initializes it with the provided data.

type UintColony

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

UintColony represents a colony of Uints.

func NewUintColony

func NewUintColony(size uint) *UintColony

NewUintColony returns a new colony of Uints.

func (*UintColony) Delete

func (c *UintColony) Delete(tp *uint)

Delete returns a pointer to the colony.

func (*UintColony) Insert

func (c *UintColony) Insert(t *uint) (tp *uint)

Insert returns a pointer from the colony and initializes it with the provided data.

type UintptrColony

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

UintptrColony represents a colony of Uintptrs.

func NewUintptrColony

func NewUintptrColony(size uint) *UintptrColony

NewUintptrColony returns a new colony of Uintptrs.

func (*UintptrColony) Delete

func (c *UintptrColony) Delete(tp *uintptr)

Delete returns a pointer to the colony.

func (*UintptrColony) Insert

func (c *UintptrColony) Insert(t *uintptr) (tp *uintptr)

Insert returns a pointer from the colony and initializes it with the provided data.

type ValueType

type ValueType generic.Type

type ValueTypeColony

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

ValueTypeColony represents a colony of ValueTypes.

func NewValueTypeColony

func NewValueTypeColony(size uint) *ValueTypeColony

NewValueTypeColony returns a new colony of ValueTypes.

func (*ValueTypeColony) Delete

func (c *ValueTypeColony) Delete(tp *ValueType)

Delete returns a pointer to the colony.

func (*ValueTypeColony) Insert

func (c *ValueTypeColony) Insert(t *ValueType) (tp *ValueType)

Insert returns a pointer from the colony and initializes it with the provided data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL