util

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectorySeparator added in v0.0.6

func DirectorySeparator() string

DirectorySeparator 获取文件分割符 php 中的 DIRECTORY_SEPARATOR

func FileExists

func FileExists(path string) bool

FileExists 判断所给路径文件/文件夹是否存在 类似 php file_exists 函数

func IsDir

func IsDir(path string) bool

IsDir 判断给定路径是否为文件夹 类似php is_dir

func IsFile

func IsFile(path string) bool

IsFile 判断给定路径是否为文件 类似php is_file

func Os

func Os() string

Os 获取当前操作系统名称 eg:windows

func PathInfo

func PathInfo(pathU string) map[string]string

PathInfo 返回文件路径的信息

func RangeRand

func RangeRand(min, max int64) int64

RangeRand 生成区间[-m, n]的 int64安全随机数

Types

This section is empty.

Directories

Path Synopsis
Package mycrypto 实现兼容平台的加密解密.
Package mycrypto 实现兼容平台的加密解密.

Jump to

Keyboard shortcuts

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