conversionutil

package
v0.0.0-...-72b4f51 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLargeStringNum

func ConvertLargeStringNum(txt string) (converted string)

ConvertLargeStringNum is a nifty lil conversion function that parses string ints that would overwhelm int64 mem space, handling e notation and decimals, or lack thereof

ex. "1.234567890123456789012345678901234567890123456789012345678901234567890123456789e+100" -> "123456789012345678901234567890123456789012345678901234567890123456789012345678900000000000

func RemoveDuplicateValues

func RemoveDuplicateValues(values []string) (cleaned []string)

RemoveDuplicateValues removes duplicate values from a string array

ex. ["a", "b", "c", "a", "b"] -> ["a", "b", "c"]

func Uint8toString

func Uint8toString(array []uint8) []string

Uint8toString converts a uint8 array to a string array

ex. [91 34 97 34 44 32 34 98 34 44 32 34 99 34 93] -> ["a", "b", "c"]

Types

This section is empty.

Jump to

Keyboard shortcuts

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