perfgolang.org/x/perf/internal/basedir Index | Files

package basedir

import "golang.org/x/perf/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-20250414141303-3fc2b901edf3 (latest)
Published
Apr 14, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
1 month ago

Tools for package owners.