assets

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package assets bundles plugin/template metadata, GraphQL queries, and other static files into the binary via go:embed. The companion scripts/sync-assets.sh script materializes the directory tree from the upstream lowlighter/metrics checkout; this file is the only runtime entry point.

The "all:" prefix is required so directories whose names begin with "_" (rare upstream cases) are also included.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS() embed.FS

FS returns the embedded filesystem rooted at the assets/ directory. Callers (typically [config.LoadMetadata]) walk plugins/ and templates/ from this root.

func OcticonData

func OcticonData() ([]byte, error)

OcticonData returns the embedded primer/octicons data.json that gen-octicons produces. internal/render.ReplaceOcticons reads it once at first use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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