Documentation
¶
Index ¶
- func BytesToString(b []byte) string
- func CreateIfNotExists(path string, isDir bool) error
- func IsExist(path string) bool
- func MakeDir(dir string) error
- func PtrTo[T any](v T) *T
- func RelToCwd(path string) string
- func RemoveEmptyLine(s string) string
- func RemoveIfExist(path string) error
- func ReplaceSubscript(s string) string
- func ReplaceSuperscript(s string) string
- func StringToBytes(s string) []byte
- func Truncate(filename string) error
- type RateLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string.
func CreateIfNotExists ¶
CreateIfNotExists creates a file or a directory only if it does not already exist.
func RemoveEmptyLine ¶
func RemoveIfExist ¶
func ReplaceSubscript ¶
func ReplaceSuperscript ¶
func StringToBytes ¶
StringToBytes converts string to byte slice.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(delay time.Duration) *RateLimiter
func (*RateLimiter) Stop ¶
func (r *RateLimiter) Stop()
func (*RateLimiter) Wait ¶
func (r *RateLimiter) Wait()
Click to show internal directories.
Click to hide internal directories.