helpers

package
v0.0.0-...-819b816 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTo

func DefaultTo(s []string, defaultValue string) string

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