Documentation
¶
Index ¶
- func ClientOriginalExtension(file string) string
- func Contain(file string, search string) bool
- func Create(file string, content string) error
- func Exists(file string) bool
- func Extension(file string, originalWhenUnknown ...bool) (string, error)
- func GetContent(file string) (string, error)
- func GetFrameworkContent(file string) (string, error)
- func GetPackageContent(pkgName, file string) (string, error)
- func LastModified(file, timezone string) (time.Time, error)
- func MimeType(file string) (string, error)
- func PutContent(file string, content string, options ...Option) error
- func Remove(file string) error
- func Size(file string) (int64, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientOriginalExtension ¶ added in v1.5.0
func Extension ¶ added in v1.5.0
Extension Supported types: https://github.com/gabriel-vasile/mimetype/blob/master/supported_mimes.md
func GetContent ¶ added in v1.15.12
func GetFrameworkContent ¶ added in v1.15.12
func GetPackageContent ¶ added in v1.15.12
func PutContent ¶ added in v1.15.12
Types ¶
type Option ¶ added in v1.15.12
type Option func(*option)
Option represents an option for FilePutContents
func WithAppend ¶ added in v1.15.12
WithAppend sets the append mode for FilePutContents
Click to show internal directories.
Click to hide internal directories.