web

package
v0.0.0-...-03ceaba Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by rice embed-go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(content Content, port int)

Serve starts a new HTTP server and renders a given template to a given localhost port.

Types

type Content

type Content struct {
	Title  string
	ByLang *utils.Directory
	ByFile *utils.Directory
}

Content is a wrapper around all data to be fed to the frontend template.

func NewContent

func NewContent(title string, rootByLang *utils.Directory, rootByFile *utils.Directory) Content

Jump to

Keyboard shortcuts

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