Skip to content

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

License

Notifications You must be signed in to change notification settings

Someone0nEarth/qogi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages