Documentation

Overview

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

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

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    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.