crash.software
Projects
Pull Requests
Issues
Builds
Osmedeus
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
Osmedeus
Files
🤬
Sign In
ecbd8598
ROOT
/
utils
/
helper.go
Search
History
901 lines
|
ISO-8859-1
|
17 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
CalcTimeout
(raw string)
:
int
GetDomain
(raw string)
:
(string, error)
EmptyDir
(dir string)
:
bool
EmptyFile
(filename string, num int)
:
bool
StrToInt
(data string)
:
int
GetOSEnv
(name string, defaultValue string)
:
string
MakeDir
(folder string)
GetCurrentDay
()
:
string
NormalizePath
(path string)
:
string
GetFileContent
(filename string)
:
string
ReadingLines
(filename string)
:
[]string
Cat
(filename string)
ReadingFileUnique
(filename string)
:
[]string
WriteToFile
(filename string, data string)
:
(string, error)
AppendToContent
(filename string, data string)
:
(string, error)
FileExists
(filename string)
:
bool
FolderExists
(foldername string)
:
bool
FileLength
(filename string)
:
int
DirLength
(dir string)
:
int
Copy
(src string, dest string)
GetTS
()
:
string
GenHash
(text string)
:
string
GetFileSize
(src string)
:
float64
RandomString
(n int)
:
string
runCmdWithOutput
(cmd string)
:
string
RunCmdWithOutput
(command string, timeoutRaw ...string)
:
string
runCommandWithError
(cmd string)
:
(string, error)
RunCommandWithErr
(command string, timeoutRaw ...string)
:
(string, error)
RunCommandSteamOutput
(cmd string)
:
(string, error)
RunOSCommand
(cmd string)
:
(string, error)
RunCommandWithoutOutput
(cmd string)
:
error
StripPath
(raw string)
:
string
ZippedFolder
(src string, dest string)
:
error
CountLines
(filename string)
:
int
CleanPath
(raw string)
:
string
IsFile
(src string)
:
bool
FolderLength
(dir string)
:
int
ImageAsBase64
(src string)
:
string
Base64Encode
(raw string)
:
string
bufSize
OffsetRange
File
:
string
Start
:
int64
Stop
:
int64
SplitLineChunks
(filename string, chunks int)
:
([]OffsetRange, error)
nextRange
(file *os.File, start, stop int64)
:
(OffsetRange, error)
skipPartialLine
(file *os.File, offset int64)
:
(int64, error)
RangeReader
file
:
*os.File
start
:
int64
stop
:
int64
NewRangeReader
(file *os.File, start, stop int64)
:
*RangeReader
Move
(src string, dest string)
:
error
IsWritable
(filename string)
:
(isWritable bool, err error)
RenderText
(format string, data map[string]string)
:
string
*RangeReader
Read
(p []byte)
:
(n int, err error)
All occurrences
Please wait...
Page is in error, reload to recover