Categorygithub.com/fahmifan/devkit
modulepackage
0.0.0-20241113141013-db6b9d1d1645
Repository: https://github.com/fahmifan/devkit.git
Documentation: pkg.go.dev

# README

Devkit

A bunch of code to copy paste

# Packages

Package indonesian provide utiliy related to Indonesian formatting.

# Functions

BoolP to pointer.
FatalErr fatal if err not nil.
Float64P to pointer.
Int64P to pointer.
Int64ToString ..
IntP to pointer.
IntToString ..
JSON marshal i to []byte json.
JSONS marshal i to string json.
MD5HashUnique hash plain+timestamp to make it unique.
Offset calculate offset from page & size.
Page default return to one.
Size default return to one.
SizeWithLimit if size lower/greater than the limit it will return the limit.
StringP to pointer.
StringToBool ..
StringToInt64 if s is not an int, will return 0.
StringToInt64 if s is not an int64, will return 0.
UniqueInt default max to 999.