MCPcopy Index your code
hub / github.com/github/github-mcp-server / GetUIAsset

Function GetUIAsset

pkg/github/ui_embed.go:16–22  ·  view source on GitHub ↗

GetUIAsset reads a UI asset from the embedded filesystem. The name should be just the filename (e.g., "get-me.html").

(name string)

Source from the content-addressed store, hash-verified

14// GetUIAsset reads a UI asset from the embedded filesystem.
15// The name should be just the filename (e.g., "get-me.html").
16func GetUIAsset(name string) (string, error) {
17 data, err := UIAssets.ReadFile("ui_dist/" + name)
18 if err != nil {
19 return "", err
20 }
21 return string(data), nil
22}
23
24// MustGetUIAsset reads a UI asset and panics if it fails.
25// Use this when the asset is required for server operation.

Callers 2

MustGetUIAssetFunction · 0.85
UIAssetsAvailableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected