buildgolang.org/x/build/internal/basedir Index | Files

package basedir

import "golang.org/x/build/internal/basedir"

Package basedir finds templates and static files associated with a binary.

Index

Functions

func Find

func Find(pkg string) string

Find locates a directory for the given package. pkg should be the directory that contains the templates and/or static directories. If pkg cannot be found, an empty string will be returned.

Source Files

basedir.go

Version
v0.0.0-20250421191922-3619c213cff3 (latest)
Published
Apr 21, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
3 months ago

Tools for package owners.