utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInt

func DefaultInt(val int, def int) int

DefaultInt Checks if initial int is not empty and returns default

func DefaultSort

func DefaultSort(val string, def string) string

DefaultSort checks if initial value is not empty and returns a default value

func DefaultString

func DefaultString(val string, def string) string

DefaultString checks if initial string is empty and returns default

func Slug

func Slug(val string) string

Slug generates snake_case slug string

Types

This section is empty.

Jump to

Keyboard shortcuts

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