static

package module
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package static holds the embedded DataStar JavaScript client bundle and its version. It is a dedicated asset module so the github.com/larsartmann/go-datastar protocol package can serve the client without owning the bytes directly.

The returned byte slice is the shared embedded value and must not be modified.

Provenance

datastar.js is the upstream minified client bundle from github.com/starfederation/datastar at the release matching Version, fetched verbatim from the upstream repo's bundles/ directory at the release tag (upstream releases publish no assets). Renovate's custom manager proposes Version bumps from upstream releases; the upgrade process (replace the file, bump Version, run the wire-format goldens) is documented in docs/static-js.md.

Index

Constants

View Source
const Version = "1.0.3"

Version is the release version of the embedded DataStar JavaScript client.

Variables

This section is empty.

Functions

func Bytes

func Bytes() []byte

Bytes returns the embedded DataStar JavaScript client bundle.

The returned slice is shared and must not be modified by the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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