Back to godoc.org

Package assets

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package assets is generated by go.chromium.org/luci/tools/cmd/assets.

It contains all [*.css *.html *.js *.py *.tmpl] files found in the package as byte arrays.

Package assets contains generated go-code for small scripts that are needed by vpython.

Index

func Assets

func Assets() map[string]string

Assets returns a map of all assets.

func GetAsset

func GetAsset(name string) []byte

GetAsset returns an asset by its name. Returns nil if no such asset exists.

func GetAssetSHA256

func GetAssetSHA256(name string) []byte

GetAssetSHA256 returns the asset checksum. Returns nil if no such asset exists.

func GetAssetString

func GetAssetString(name string) string

GetAssetString is version of GetAsset that returns string instead of byte slice. Returns empty string if no such asset exists.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier