common

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasInt

func HasInt(s []int, value int) bool

func IsLocal

func IsLocal() bool

func RemoveInt

func RemoveInt(s []int, value int) []int

Types

type Int64s

type Int64s []int64

func (Int64s) Contain

func (i Int64s) Contain(v int64) bool

type Strings

type Strings []string

func (Strings) Contain

func (s Strings) Contain(v string) bool

type VersionReader added in v0.8.3

type VersionReader interface {
	Read() (string, error)
}

func NewVersionReader added in v0.8.3

func NewVersionReader() VersionReader

type VersionReaderMock added in v0.8.3

type VersionReaderMock struct {
	OnRead func() (string, error)
}

func (*VersionReaderMock) Read added in v0.8.3

func (m *VersionReaderMock) Read() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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