sTemp

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatF

func FormatF(f float64, dec string) string

func FormatFloat added in v0.5.1

func FormatFloat(f float64, prec int) string

func Functions added in v0.3.6

func Functions(name ...string) template.FuncMap

func Layout added in v0.3.6

func Layout(w http.ResponseWriter, dir_temp_paths, path_prefix string, msg FlashMessages, temp_paths Paths, data Data) error

func LayoutWithFunc added in v0.4.2

func LayoutWithFunc(w http.ResponseWriter, func_maps template.FuncMap, dir_temp_paths, path_prefix string, msg FlashMessages, temp_paths Paths, data Data) error

func ReadDate added in v0.3.6

func ReadDate(field, layout string, r *http.Request, msg *FlashMessages) int64

Types

type Data added in v0.3.6

type Data bson.M

type FlashMessage added in v0.3.6

type FlashMessage struct {
	Message string
	Type    string
}

type FlashMessages added in v0.3.6

type FlashMessages []*FlashMessage

func (*FlashMessages) Error added in v0.3.6

func (fm *FlashMessages) Error(format string, a ...any)

func (*FlashMessages) Info added in v0.3.6

func (fm *FlashMessages) Info(format string, a ...any)

func (*FlashMessages) Warning added in v0.5.1

func (fm *FlashMessages) Warning(format string, a ...any)

type FormDates added in v0.4.5

type FormDates struct {
	TsFrom int64
	TsTo   int64
}

func (*FormDates) Read added in v0.4.5

func (f *FormDates) Read(layout string, msg *FlashMessages, r *http.Request)

type Paths added in v0.3.6

type Paths []string

func Basics added in v0.3.6

func Basics(dir_path string) Paths

Jump to

Keyboard shortcuts

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