dt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: MIT Imports: 2 Imported by: 0

README

dt

Type Description
Generic Generic type
Compare A function for comparing two generic types
BitString A function for bit string representation of a generic type

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitStringInt

func BitStringInt(a Generic) []byte

BitStringInt returns the bit-string representation of an int number

func BitStringString

func BitStringString(a Generic) []byte

BitStringString returns the bit-string representation of a string

func CompareInt

func CompareInt(a Generic, b Generic) int

CompareInt compares two int numbers

func CompareString

func CompareString(a Generic, b Generic) int

CompareString compares two strings

Types

type BitString

type BitString func(a Generic) []byte

BitString is used for bit-string representation

type Compare

type Compare func(a Generic, b Generic) int

Compare is used for comparing

type Generic

type Generic interface{}

Generic represents a generic data type

Jump to

Keyboard shortcuts

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