utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.1.0

func Add(str1, str2 string) (string, error)

Add adds two strings in the sense that each charCode are added

func Extract added in v1.1.0

func Extract(from string, startIndex, desiredLength int) string

Extract returns an extraction of the passed string of the desired length from the passed start index. If the desired length is too long, the string is repeated.

func Hash

func Hash(input []byte) ([]byte, error)

func Split added in v1.1.0

func Split(item string) (left, right string, err error)

Split splits a byte array in two parts, the first part being one character shorter in case the passed item has odd length

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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