html

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockCookie added in v0.18.0

func LockCookie(appEnv string, cookie *http.Cookie) *http.Cookie

LockCookie is SecureCookie with strict mode for same site settings

func SecureCookie added in v0.18.0

func SecureCookie(appEnv string, cookie *http.Cookie) *http.Cookie

SecureCookie makes sure the passed cookies is only accessible to the browser, over HTTPS from the server's domain(for PUT, POST e.t.c)

func Server

func Server(router *chi.Mux, folder string)

Server creates route for routing requests for static files

Types

type Template

type Template interface {
	Render(*http.Request, http.ResponseWriter, any) error
}

func Parse

func Parse(name string, source ...string) Template

Jump to

Keyboard shortcuts

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