coordinates

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModsByVersion added in v0.0.8

type ModsByVersion []SerialModule

func (ModsByVersion) Len added in v0.0.8

func (mods ModsByVersion) Len() int

func (ModsByVersion) Less added in v0.0.8

func (mods ModsByVersion) Less(x, y int) bool

func (ModsByVersion) Swap added in v0.0.8

func (mods ModsByVersion) Swap(x, y int)

type Module

type Module struct {
	Source  string `json:"source"`
	Version string `json:"version"`
}

func (Module) Bytes

func (mi Module) Bytes() []byte

func (Module) String

func (mi Module) String() string

type RangeID

type RangeID [2]int64

A RangeID represents a sequential list of IDs. The two boundary numbers are inclusive. A RangeID of [3, 7] implies the list of IDs: {3, 4, 5, 6, 7} (in incrementing order).

type RangeIDs

type RangeIDs [][2]int64

A RangeIDs represents an increasing list of RangeID. A RangeIDs of [[2, 4], [8, 8], [13, 14]] implies the list of IDs: {2, 3, 4, 8, 13, 14} (in increasing order).

type SerialModule

type SerialModule struct {
	Module
	SerialID int64 `json:"id"`
}

Jump to

Keyboard shortcuts

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