lua

package
v0.0.0-...-01cd1ea Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

View Source
var UpdateAccountsScript = redis.NewScript(-1, GetAssetString("update-accounts.gen.lua"))

UpdateAccountsScript is a redis.Script for 'update-accounts.lua'.

Prefer this to using the raw asset directly, because this has already calculated the script SHA1.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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