pathpkg

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

README

path

返回当前工具包源码所在目录。

基础用法

p := pathpkg.Path()

注意事项

该函数基于 runtime.Caller,适合调试和测试辅助,不建议作为业务运行目录配置。

验证

go test ./path

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() string

Path 当前目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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