extos

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package extos base tool

Package extos base tool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileCopy added in v0.0.3

func FileCopy(src, dest string) error

FileCopy copies file from source to target path.

func FileModTime added in v0.0.3

func FileModTime(file string) (int64, error)

FileModTime returns file modified time and possible error.

func FileSize added in v0.0.3

func FileSize(file string) (int64, error)

FileSize returns file size in bytes and possible error.

func HasPermission added in v0.0.3

func HasPermission(name string) bool

HasPermission returns a boolean indicating whether that permission is allowed.

func IsExist added in v0.0.3

func IsExist(paths string) bool

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

func IsFile added in v0.0.3

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 added in v0.0.3

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.

Jump to

Keyboard shortcuts

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