shared

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 18

README

shared

Library code shared among our repositories

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEventHeaders added in v0.1.3

type CloudEventHeaders struct {
	ID          string    `json:"id"`
	Source      string    `json:"source"`
	SpecVersion string    `json:"specversion"`
	Subject     string    `json:"subject"`
	Time        time.Time `json:"time"`
	Type        string    `json:"type"`
}

CloudEventHeaders contains the fields common to all CloudEvent messages.

type StringSet added in v0.1.2

type StringSet struct {
	// contains filtered or unexported fields
}

StringSet offers a nice api to deal with string lists

func NewStringSet added in v0.1.2

func NewStringSet() *StringSet

func (*StringSet) Add added in v0.1.2

func (s *StringSet) Add(st string)

func (*StringSet) Contains added in v0.1.2

func (s *StringSet) Contains(st string) bool

func (*StringSet) Len added in v0.1.2

func (s *StringSet) Len() int

func (*StringSet) Slice added in v0.1.2

func (s *StringSet) Slice() []string

type VIN

type VIN string

func (VIN) String added in v0.1.1

func (v VIN) String() string

func (VIN) TeslaModel added in v0.1.3

func (v VIN) TeslaModel() string

func (VIN) Year

func (v VIN) Year() int

Year will decode the year portion from the VIN from 1994 to 2023. returns 0 if out of range. VIN nomenclature only allows for 30 year timespans, then repeats, ie. 2023 = 1993

Jump to

Keyboard shortcuts

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