util

package
v0.0.0-...-ce96b73 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c io.Closer, log func(string, ...interface{}))

func MaxInt

func MaxInt(a int, values ...int) int

Types

type ControlBreak

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

func (*ControlBreak) IsBreak

func (cb *ControlBreak) IsBreak(next string) bool

IsBreak returns true when the *next* value is different from the previous invocation

type PriorityQueue

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

func (*PriorityQueue) Len

func (queue *PriorityQueue) Len() int

func (*PriorityQueue) Less

func (queue *PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Push

func (queue *PriorityQueue) Push()

func (*PriorityQueue) Swap

func (queue *PriorityQueue) Swap(i, j int)

type Set

type Set map[string]interface{}

func (*Set) Clear

func (s *Set) Clear()

func (*Set) Contains

func (s *Set) Contains(v string) bool

func (*Set) Put

func (s *Set) Put(v string)

func (*Set) Slice

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

Jump to

Keyboard shortcuts

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