README ¶ templates Simple template render object for use with hypermedia webservers. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Int64ToTimestamp(i int64) string type HttpError func (e *HttpError) Render(w http.ResponseWriter, t *Templates, name string) type Templates func NewTemplate(glob string) *Templates func (t *Templates) Render(w io.Writer, name string, data any) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Int64ToTimestamp ¶ added in v0.1.3 func Int64ToTimestamp(i int64) string func int64 to timestamp Types ¶ type HttpError ¶ added in v0.1.4 type HttpError struct { Code int Title string Message string } func (*HttpError) Render ¶ added in v0.1.4 func (e *HttpError) Render(w http.ResponseWriter, t *Templates, name string) type Templates ¶ type Templates struct { // contains filtered or unexported fields } func NewTemplate ¶ func NewTemplate(glob string) *Templates func (*Templates) Render ¶ func (t *Templates) Render(w io.Writer, name string, data any) error Source Files ¶ View all Source files http-error.go template.go Click to show internal directories. Click to hide internal directories.