helpers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

BoolToInt converts a bool to an int.

It returns "1" if b == true and "0" otherwise.

func GetRegexpParams added in v0.6.0

func GetRegexpParams(regEx, url string) (paramsMap map[string]string)

GetRegexpParams parses url with the given regular expression and returns the group values defined in the expression.

func NewBool

func NewBool(v bool) *bool

NewBool returns bool pointer of the passed value.

func NewInt

func NewInt(v int) *int

NewInt returns an int pointer of the passed value.

func NewStr

func NewStr(v string) *string

NewStr returns a string pointer of the passed value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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