datatypes

package
Version: v0.0.0-...-3e0ad18 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameValueItem

type NameValueItem struct {
	Name  string      `json:"name"`
	Value interface{} `json:"value"`
}

NameValueItem represents a data type with a name and a value.

type OrderedSet

type OrderedSet struct {
	Values []string
	// contains filtered or unexported fields
}

OrderedSet represents an ordered set. TODO: make it a true **Ordered** set.

func (*OrderedSet) Add

func (o *OrderedSet) Add(item string)

Add adds a new item into the ordered set.

func (*OrderedSet) Init

func (o *OrderedSet) Init(items ...string)

Init creates a new OrderedSet instance, and adds any given items into this set.

Jump to

Keyboard shortcuts

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