utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []rune) bool

Equal compare two rune arrays and return if they are equals or not

func Max

func Max(a int, b int) int

Max return the largest integer among the two in parameters

func Min

func Min(a int, b int) int

Min return the smallest integer among the two in parameters

Types

type StringHashMap

type StringHashMap map[string]struct{}

StringHashMap is HashMap substitute for string

func (StringHashMap) AddAll

func (m StringHashMap) AddAll(srcMap StringHashMap)

AddAll adds all elements from one StringHashMap to another

func (StringHashMap) ToArray

func (m StringHashMap) ToArray() []string

ToArray convert and return an StringHashMap to string array

Jump to

Keyboard shortcuts

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