util

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPackage = fmt.Errorf("not in a go package")

Functions

func Name

func Name(args []string) string

func PackageRoot

func PackageRoot(from string) (string, string, error)

Types

type PackageInfo

type PackageInfo struct {
	PackageRoot    string
	RootPackage    string
	CurrentPackage string
}

func PkgInfo

func PkgInfo(from string) (*PackageInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL