helpers

package
v0.0.0-...-fe735be Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 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