project

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModePerm0644 = 0644 // 文件保存perm
	ModePerm0755 = 0755 // 目录保存perm 一个用户需要进入一个目录查看文件,最少需要读和执行的权限。
)

-代表无权限,r代表读权限,w代表写权限,x代表执行权限 数字权限使用格式 r=4, w=2, x=1, -=0 0755 拥有者有读、写、执行权限;而属组用户和其他用户只有读、执行权限。

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

CreateDir 创建目录

func DevMode

func DevMode() bool

DevMode indicates whether the project is running in development mode.

func ExecAppDir

func ExecAppDir() string

ExecAppDir gets compiled executable file directory: C:\option\_test

func ExecAppPath

func ExecAppPath() string

ExecAppPath gets compiled executable file absolute path: C:\option\_test\option.test.exe

func FilenameWithoutExt

func FilenameWithoutExt(fileName string) string

FilenameWithoutExt 没有后缀的文件名称

func IsDir

func IsDir(path string) bool

IsDir 判断所给路径是否为文件夹

func PrefixInList

func PrefixInList(list []string, prefix string) bool

func Root

func Root(more ...string) string

Root returns the filepath to the root of this project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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