value

package
v0.0.0-...-579017f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OID

type OID []uint32

OID defines an OID.

func MustParseOID

func MustParseOID(text string) OID

MustParseOID works like ParseOID expect it panics on a parsing error.

func ParseOID

func ParseOID(text string) (OID, error)

ParseOID parses the provided string and returns a valid oid. If one of the subidentifers canot be parsed to an uint32, the function will panic.

func (OID) CommonPrefix

func (o OID) CommonPrefix(other OID) OID

CommonPrefix compares the oid with the provided one and returns a new oid containing all matching prefix subidentifiers.

func (OID) First

func (o OID) First(count int) OID

First returns the first n subidentifiers as a new oid.

func (OID) String

func (o OID) String() string

Jump to

Keyboard shortcuts

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