resources

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package resources contains embedded resources

Index

Constants

This section is empty.

Variables

View Source
var Typed *typedFileSystem

Typed is a struct that represents the embedded parcello filesystem. It is a singleton object and is initialized for you, just use it.

Functions

This section is empty.

Types

type TypedFile

type TypedFile struct {
	Reader func() io.Reader
	Bytes  func() []byte
	String func() string
	Path   string
}

TypedFile provides 3 easy helper functions to easily read an embedded parcello resource. It also returns the original file path.

func UnTyped

func UnTyped(path string) *TypedFile

UnTyped provides a dynamic interface into the embedded parcello filesystem.

Jump to

Keyboard shortcuts

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