projectpath

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package projectpath provides a way to determine the root directory of the project at runtime. It uses runtime.Caller to find the location of the current file and then calculates the project root relative to this file's location. This is useful for accessing project resources with absolute paths regardless of the working directory.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Root folder of this project
	Root = filepath.Join(filepath.Dir(b), "../..")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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