utils

package
v1.0.58-beta Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSize

func FormatSize(bytes int64) string

func GetDiskInfo

func GetDiskInfo(dir string) models.DiskInfo

func GetSettings

func GetSettings[T models.Settings](repo repository.Repository, section string) (T, error)

func IntPtr

func IntPtr(i int) *int

CREATE INT POINTER

func IsNetworkError

func IsNetworkError(err error) bool

func SanitizeFilePath

func SanitizeFilePath(path string) string

func SanitizeVersion

func SanitizeVersion(version string) string

func StringPtr

func StringPtr(s string) *string

CREATE STRING POINTER

func ValidateFilePath

func ValidateFilePath(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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