utils

package
v0.0.0-...-4ed46a5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(relPath string) ([]byte, error)

ReadFile read the file with relative path and return content or error

func ReadFilesInDir

func ReadFilesInDir(relPath string) map[string][]byte

ReadFilesInDir read all files in dir and return it in map[path][]fileBytes

func ReadHTML

func ReadHTML(relPath string) template.HTML

ReadHTML read the file with relative path and return content or empty HTML if any error

Types

This section is empty.

Jump to

Keyboard shortcuts

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