helpers

package
v0.0.0-...-089f0e8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Limit

func Limit(limit string) int

Limit returns the number of result for pagination

func Offset

func Offset(offset string) int

Offset returns the starting number of result for pagination

func SortOrder

func SortOrder(table, sort, order string) string

SortOrder returns the string for sorting and orderin data

func ToSnakeCase

func ToSnakeCase(str string) string

ToSnakeCase changes string to database table

Types

This section is empty.

Jump to

Keyboard shortcuts

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