misc

package module
v0.0.0-...-fb93961 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

README

misc

一些工具函数

Documentation

Index

Constants

View Source
const (
	DefaultRootPath = "./"
	RootLocater     = ".root_locater"
)

Variables

This section is empty.

Functions

func GetPathInRootDir

func GetPathInRootDir(filename string) string

GetPathInRootDir 获取根目录下的文件路径 使用这个函数的前提是在项目根目录下有一个.root_locater文件

func GetRootPath

func GetRootPath() string

GetRootPath 获取根目录 使用这个函数的前提是在项目根目录下有一个.root_locater文件

func IsFileExist

func IsFileExist(filename string) bool

IsFileExist 文件是否存在

func IsRootDir

func IsRootDir(path string) bool

IsRootDir 判断是否根目录 使用这个函数的前提是在项目根目录下有一个.root_locater文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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