themes

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Name  string
	Files []*ThemeFile
}

func GetTheme

func GetTheme() *Theme

func (*Theme) Get

func (theme *Theme) Get(uri string) *ThemeFile

Get the theme file that matches the specified uri (e.g. "favicon.ico"); returns nil if the theme file was not found.

func (*Theme) StoreOnDisc

func (theme *Theme) StoreOnDisc(baseFolder string) (success bool, err error)

type ThemeFile

type ThemeFile struct {
	// contains filtered or unexported fields
}

func (*ThemeFile) Data

func (file *ThemeFile) Data() []byte

Get the data of the theme file.

func (*ThemeFile) Path

func (file *ThemeFile) Path() string

Get the path of the theme file (e.g. "favicon.ico").

func (*ThemeFile) StoreOnDisc

func (themeFile *ThemeFile) StoreOnDisc(baseFolder string) (success bool, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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