Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

osspkg/go-static

Repository files navigation

!!Archived!!

The package became a part of: go.osspkg.com/goppy/v3 The current project is no longer supported.


go-static

Coverage Status Release Go Report Card CI

Library for embedding static files inside an application

Install as tool

go install go.osspkg.com/static/cmd/static@latest

Packaging

//go:generate static <DIR> <VAR>
  • DIR - Path to the static folder
  • VAR - A variable containing static.Reader interface

Example go code

package example

import (
	"fmt"

	"go.osspkg.com/static"
)

//go:generate static ./.. ui

var ui static.Reader

func run() {
	fmt.Println(ui.List())
}

License

BSD-3-Clause License. See the LICENSE file for details.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors