runtimes

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 6 Imported by: 0

README

Runtimes

Go doc

暂无介绍...

目录导航

列出了该 package 下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️

展开 / 折叠目录导航

包级函数定义

函数名称 描述
GetWorkingDir 获取工作目录绝对路径
GetTempDir 获取系统临时目录
GetExecutablePathByBuild 获取当前执行文件绝对路径(go build)
GetExecutablePathByCaller 获取当前执行文件绝对路径(go run)
CurrentRunningFuncName 获取正在运行的函数名

详情信息

func GetWorkingDir() string

获取工作目录绝对路径


func GetTempDir() string

获取系统临时目录


func GetExecutablePathByBuild() string

获取当前执行文件绝对路径(go build)


func GetExecutablePathByCaller() string

获取当前执行文件绝对路径(go run)


func CurrentRunningFuncName(skip ...int) string

获取正在运行的函数名


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentRunningFuncName

func CurrentRunningFuncName(skip ...int) string

CurrentRunningFuncName 获取正在运行的函数名

func GetExecutablePathByBuild

func GetExecutablePathByBuild() string

GetExecutablePathByBuild 获取当前执行文件绝对路径(go build)

func GetExecutablePathByCaller

func GetExecutablePathByCaller() string

GetExecutablePathByCaller 获取当前执行文件绝对路径(go run)

func GetTempDir

func GetTempDir() string

GetTempDir 获取系统临时目录

func GetWorkingDir

func GetWorkingDir() string

GetWorkingDir 获取工作目录绝对路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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