static

package
Version: v0.0.0-...-043d1ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: AGPL-3.0-or-later, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Versions static files with hash, replaces references and stores in memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMimeType

func GetMimeType(name string) string

Types

type File

type File struct {
	Type     string
	Hash     string
	Data     []byte
	GzipData []byte
}

type Store

type Store struct {
	Files map[string]*File
	// contains filtered or unexported fields
}

Currently all static references are found and replaced Files can be used as a fallback if a reference is missed

func NewStore

func NewStore(root string) (store *Store, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL