helpers

package
v0.0.0-...-04f365a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRowsAffected

func CheckRowsAffected(rows int64) error

func Contains

func Contains(search string, words []string) bool

func ConvertToDriverValue

func ConvertToDriverValue(values []interface{}) []driver.Value

Helper function to convert slice of interface{} into a slice of driver.Value

func GenerateRandomString

func GenerateRandomString(lenght int) string

func ReadFile

func ReadFile(filepath string, separator string) ([]string, error)

func StructToSlice

func StructToSlice(i interface{}) []interface{}

Helper function to convert struct fields into a slice of interface{}

Types

This section is empty.

Directories

Path Synopsis
http

Jump to

Keyboard shortcuts

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