website: golang.org/x/website/content/static/internal/gen Index | Files

package gen

import "golang.org/x/website/content/static/internal/gen"

Package gen is used by content/static/makestatic.go to generate content/static/static.go.

This is a separate package so that it can be tested without build constraints. cmd/golangorg and other binaries should not depend on it.

Index

Package Files

gen.go

func Generate Uses

func Generate() ([]byte, error)

Generate reads a set of files and returns a file buffer that declares a map of string constants containing contents of the input files.

Package gen imports 7 packages (graph). Updated 2020-04-09. Refresh now. Tools for package owners.