Versions in this module Expand all Collapse all v1 v1.0.1 Oct 27, 2026 v1.0.0 Oct 25, 2026 Changes in this version + const FileSystemOfGOPATH + const GlobalSeparatorWithFileName + const ZIPExtension + func AbsPath(path string, create bool) (string, error) + func Characters(data []byte) int + func CharactersForFile(filename string) (int, error) + func CleanBlankLines(data []byte) []byte + func CleanBlankLinesForFile(filename string) ([]byte, error) + func CleanSpecificContentLines(data []byte, findStr string) []byte + func CleanSpecificContentLinesForFile(filename string, findStr string) ([]byte, error) + func ContentDispositionFilename() func(val string) string + func Copy(src string, dst string, ops ...Option) error + func CreateFile(filename string, data []byte, ops ...Option) (string, error) + func CreateFilename(filename, extension string, ops ...Option) string + func CreateZIPFileWithFilename(source string) (string, error) + func DirNotExists(path string) bool + func DownloadFile(resp http.ResponseWriter, path string) error + func DownloadFileByIOReader(resp http.ResponseWriter, reader io.Reader, filename string, filesize int64) error + func EmbedsExists(embeds embed.FS, path string) bool + func EmbedsFileExists(embeds embed.FS, path string) bool + func EmbedsNotExists(embeds embed.FS, path string) bool + func Exists(path string) bool + func FilenameTrimPrefix(filename, prefix string) string + func GetContentWithRegularExpression(str, pattern string, ops ...Option) ([]string, error) + func GetFileContentBytesWithEmbedFS(fs embed.FS, filename string) ([]byte, error) + func GetFileContentStringSliceWithBuffer(buffer *bytes.Buffer, ops ...Option) ([]string, error) + func GetFileContentStringSliceWithEmbedFS(fs embed.FS, filename string, ops ...Option) ([]string, error) + func GetFileContentStringSliceWithFilename(filename string, ops ...Option) ([]string, error) + func GetFileExtension(filename string, ops ...Option) string + func GetFileOrDirectoryName(path string) (string, bool, error) + func GetFilePathWithFileSystemPath(baseDir string, ops ...Option) (string, error) + func GetGOPATH() string + func GetGOPATHProjectSource() string + func GetResponseHeader(resp http.ResponseWriter, field string) string + func GetResponseHeaderFunc(resp http.ResponseWriter, field string, process func(val string) string) string + func InSlice(source []interface{}, find interface{}) bool + func IsDir(path string) (bool, error) + func IsFile(filename string) (bool, error) + func IsNotExists(path string) bool + func IsNotExistsWithEmbedFS(embeds embed.FS, path string) bool + func LastDirName(filename string) string + func Lines(data []byte) int + func LinesForFile(filename string) (int, error) + func MarkContentPrefixClear(data []byte, mark string, ops ...Option) []byte + func MarkContentSuffixClear(data []byte, mark string, ops ...Option) []byte + func MkdirAll(path string) error + func MustGetFilePathWithFileSystemPath(baseDir string, ops ...Option) string + func NotExistsMkdir(path string) error + func NotExistsMkdirAll(path string) error + func ReadDir(path string, result []string) ([]string, error) + func RuntimeMasterDir() string + func Touch(filename string) error + func Truncate(filename string, size int64) error + func UploadFileForMultipartFields(values map[string]interface{}) (contentType string, buffer bytes.Buffer, err error) + func UploadIsAllowMIMEWithFormFile(request *http.Request, key string, allows []string) (bool, error) + func WriteDir(dst string, files []string, ops ...Option) error + type FileExtension string + const FileExtensionWithDocumentOfFileText + const FileExtensionWithDocumentOfMarkdown + const FileExtensionWithImageOfBMP + const FileExtensionWithImageOfGIF + const FileExtensionWithImageOfJPEG + const FileExtensionWithImageOfPNG + const FileExtensionWithOfficeOfCSV + const FileExtensionWithOfficeOfExcel + const FileExtensionWithOfficeOfWord + func (file FileExtension) String() string + type FileSystemPath string + const AssetsSavePathForCSV + const AssetsSavePathForDatabase + const AssetsSavePathForExcel + const GlobalDefaultDir + func (p FileSystemPath) String() string + type Option interface + func WithIgnoreBlankLine(ignored bool) Option + func WithOriginalFileNameTrimPrefix(str string) Option + func WithSpecificBaseDir(baseDir string) Option + func WithSpecificContainsMarkString(contains bool) Option + func WithSpecificFileExtension(extension FileExtension) Option + func WithSpecificFileExtensionContainsDot(containsdot bool) Option + func WithSpecificFileSystemPath(path FileSystemPath) Option + func WithSpecificTrimOriginalFileExtension(trim bool) Option + type VersionGithub struct + Major string + Minor string + Patch string + func GetVersion(version string) (*VersionGithub, error) + func (v *VersionGithub) GetFullVersion() string + func (v *VersionGithub) GetMinorVersion() string + func (v *VersionGithub) Join(element ...string) string