Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 756 Bytes

README.md

File metadata and controls

48 lines (30 loc) · 756 Bytes

qogi - Quality of Golang Improvements

Small things that makes your development in Golang a little bit more comfy.

Some Examples

Pointer Stuff

To Pointers:

stringPointer := qogi.ToPointer("abcd123456")

uintPointer := qogi.ToPointer(uint(123456))

...

From Pointers:

uintPointerValue := qogi.UintOrZero(uintPointer)
uintZeroValue := qogi.UintOrZero(nil)

stringPointerValue := StringOrEmpty(stringPointer)
emptyString := StringOrEmpty(nil)

String to Numbers

unsignedInteger, err := AtoUi("7")

float, err := AtoF("12345.54321")

Numbers to String

uintAsString := UiToA(123)

Feedback

Feel free to suggests, contribute, request, improve, criticize and so on :)

Have fun, someone.earth