util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package util contains some utilities we will use trough the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNumber

func IsNumber(s string) bool

IsNumber will report if a string is a numeric.

func StringIsAllUpper

func StringIsAllUpper(s string) bool

StringIsAllUpper will report if a string is all UPPERCASE. This is useful because usually all uppercase variables are env variables.

func StringIsArgument

func StringIsArgument(input string) bool

StringIsArgument will report if a string is a number. This is useful because usually assignments that are numbers are actually function arguments.

func UniqueSliceElements

func UniqueSliceElements[T comparable](inputSlice []T) []T

UniqueSliceElements will deduplicate a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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