oid

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package OID contains tools to work with OIDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OID

type OID []int64

OID represents an OID as a slice of ints.

func MustParse

func MustParse(s string) OID

MustParse parses the OID string, but panics on error.

func Parse

func Parse(s string) (OID, error)

Parse parses an OID string formatted as '1.2.3.4.5...' and returns an OID instance. It returns an error if the OID string can't be parsed.

func (OID) String

func (o OID) String() string

String returns the string representation of the OID.

func (OID) URN

func (o OID) URN() string

URN returns the URN of the OID.

Jump to

Keyboard shortcuts

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