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-20250214215153-c95ad7d5b636 (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
2 weeks ago

Tools for package owners.