sharp

package module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 5 Imported by: 0

README

sharp

GoDoc Build Status codecov Action Status Go Report Card Licence

Feature

string extend package

@see strext

Documentation

Overview

Package sharp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCopy

func FileCopy(src, dest string) error

FileCopy copies file from source to target path.

func FileModTime

func FileModTime(file string) (int64, error)

FileModTime returns file modified time and possible error.

func FileSize

func FileSize(file string) (int64, error)

FileSize returns file size in bytes and possible error.

func HasPermission added in v0.2.4

func HasPermission(name string) bool

HasPermission returns a boolean indicating whether that permission is allowed.

func IsExist

func IsExist(path string) bool

IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.

func IsFile

func IsFile(filePath string) bool

IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

func IsMachineLittleEndian

func IsMachineLittleEndian() bool

IsMachineLittleEndian 判断系统大小端

func WriteFile

func WriteFile(filename string, data []byte) error

WriteFile writes data to a file named by filename. If the file does not exist, WriteFile creates it and its upper level paths.

Types

This section is empty.

Directories

Path Synopsis
_example
builder command
Package algo
Package algo
chi
core
Package extnet 扩展net包, 提供ip到数值的转换
Package extnet 扩展net包, 提供ip到数值的转换
gin
Package iorm
Package iorm
trans
Package trans gorm 事务封装
Package trans gorm 事务封装

Jump to

Keyboard shortcuts

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