helper

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractGormPKColumns added in v1.1.0

func ExtractGormPKColumns(i interface{}) []string

func FilterStr added in v1.1.4

func FilterStr(s *string) *string

func Fnv32

func Fnv32(in []byte) uint32

func Fnv32Str

func Fnv32Str(s string) uint32

func GetLastUriSegment

func GetLastUriSegment(uri string) string

func MapWindowedSlice

func MapWindowedSlice[T any]() func(_ context.Context, i interface{}) (interface{}, error)

func MergeCount

func MergeCount() func(_ context.Context, i interface{}, i2 interface{}) (interface{}, error)

func SliceMapper

func SliceMapper[T any]() func(_ context.Context, i interface{}) (interface{}, error)

func SliceReducer

func SliceReducer[T any]() func(_ context.Context, acc interface{}, elem interface{}) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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