tools

package
v0.0.0-...-2b35e24 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutizeURL

func AbsolutizeURL(req *http.Request, uri string) string

AbsolutizeURL returns an absolute URL from the given URI and http.Request

func ListStaticFiles

func ListStaticFiles(subDir string, modules []string, diskPath bool) []string

ListStaticFiles get all file names of the static files that are in the "server/static/*/<subDir>" directories. Returned If diskPath is true, returned file names are relative to the yep directory (e.g. yep/server/static/src/js/foo.js) otherwise file names are relative to the http root (e.g. /static/src/js/foo.js)

Types

type LangDirection

type LangDirection string

A LangDirection defines the direction of a language either left-to-right or right-to-left

const (
	// LangDirectionLTR defines a language written from left to right
	LangDirectionLTR LangDirection = "ltr"
	// LangDirectionRTL defines a language written from right to left
	LangDirectionRTL LangDirection = "rtl"
)

type LangParameters

type LangParameters struct {
	DateFormat   string        `json:"date_format"`
	Direction    LangDirection `json:"lang_direction"`
	ThousandsSep string        `json:"thousands_sep"`
	TimeFormat   string        `json:"time_format"`
	DecimalPoint string        `json:"decimal_point"`
	ID           int64         `json:"id"`
	Grouping     string        `json:"grouping"`
}

LangParameters defines the parameters of a language locale

Directories

Path Synopsis
Package etree provides XML services through an Element Tree abstraction.
Package etree provides XML services through an Element Tree abstraction.

Jump to

Keyboard shortcuts

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