file

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOriginalExtension

func ClientOriginalExtension(file string) string

func Contain

func Contain(file string, search string) bool

func Create

func Create(file string, content string)

func Exists

func Exists(file string) bool

func Extension

func Extension(file string, originalWhenUnknown ...bool) (string, error)

Extension Supported types: https://github.com/h2non/filetype#supported-types

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func Put

func Put(data []byte, to string) error

Put 将数据存入文件

func Remove

func Remove(file string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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