auxiliary

package
v0.0.0-...-383070f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package auxiliary contains auxiliary constants, functions and variables

Index

Constants

View Source
const WINDOWS = "windows"

WINDOWS ...

Variables

This section is empty.

Functions

func Bounds

func Bounds(f float32) float32

Bounds restricts f value into bounds of 0..1

func Equal

func Equal(a, b []int) bool

Equal compares two int slices and returns true if a and b are same length contain the same elements. A nil argument is equivalent to an empty slice.

func StripANSI

func StripANSI(in string) string

StripANSI removes all ansi codes from in string

func Truncate

func Truncate(in string, w int, l ...interface{}) string

Truncate sanitizes user names in an email

func Unique

func Unique(i []int) []int

Unique returns slice with unique elements only

Types

This section is empty.

Jump to

Keyboard shortcuts

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