pkg

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package pkg provides information about the current package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Information added in v0.1.0

type Information struct {
	AbsolutePath string
	PackageName  string
}

Information holds information about the current package

func Info

func Info() (*Information, error)

Info returns Information about the current package. The current package is determined by searching the current path towards root until it finds the first go.mod file. It then uses the path and content of go.mod to populate Information

Jump to

Keyboard shortcuts

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