utils

package
v0.0.0-...-47de428 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatKls

func FormatKls(amount uint64) string

FormatKls takes the amount of sompis as uint64, and returns amount of KLS with 8 decimal places

func KlsToSompi

func KlsToSompi(amount string) (uint64, error)

KlsToSompi takes in a string representation of the Kls value to convert to Sompi

func ReadLine

func ReadLine(reader *bufio.Reader) (string, error)

ReadLine reads one line from the given reader with trimmed white space.

Types

This section is empty.

Jump to

Keyboard shortcuts

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