load

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsElement

func ContainsElement(val interface{}, array interface{}) bool

ContainsElement checks if a value exists in a slice.

func ExcelImport added in v1.0.2

func ExcelImport(file string) ([][]string, error)

func HasPrefixInList

func HasPrefixInList(str string, prefixes []string) bool

HasPrefixInList is a prefix checker

func LoadSQLQueries

func LoadSQLQueries() (map[string]string, error)

LoadSQLQueries loads SQL queries from a file and populates the QUERY map.

func Render

func Render(w http.ResponseWriter, r *http.Request, component templ.Component) error

Types

type Param added in v1.0.2

type Param struct {
	Table      string
	Query      string
	Model      any
	Offset     int
	Limit      int
	LangCode   string
	Fields     map[string]any
	Conditions map[string]any
}

Jump to

Keyboard shortcuts

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