util

package
v0.0.0-...-6f23c6b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(text string) []string

Analyze analyzes the text and returns a slice of tokens.

func DiffInt

func DiffInt(a []int, b []int) []int

DiffInt returns the diff set a between b. a and b have to be sorted in ascending order and contain no duplicates.

func FilterInt

func FilterInt(a []int, b []int) []int

FilterInt returns the set a filter b. a and b have to be sorted in ascending order and contain no duplicates.

func GetLocalIP

func GetLocalIP() string

func IfElseInt

func IfElseInt(condition bool, o1 int, o2 int) int

func InterInt

func InterInt(a []int, b []int) []int

InterInt returns the set intersection between a and b. a and b have to be sorted in ascending order and contain no duplicates.

func MergeInt

func MergeInt(a []int, b []int) []int

MergeInt returns the unique set a union b. a and b have to be sorted in ascending order and contain no duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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