Documentation
¶
Index ¶
- Constants
- Variables
- func AppendFile(name string, line string)
- func AppendIni[T any](file string, section T)
- func Attr(root *html.Node, attr string) string
- func ByteSize(bytes int) string
- func Check(err error)
- func ClearErrors()
- func Download(url, path string) error
- func Exists(path string) bool
- func FindById(root *html.Node, id string) *html.Node
- func FmtNum(i int) string
- func GetJson(url string, res any) error
- func GitUpdate()
- func HttpErr(w http.ResponseWriter, err error)
- func IsPicture(path string) bool
- func IterChildren(root *html.Node, cb func(*html.Node))
- func LoadList(path string) []string
- func Log(err error)
- func MakeThumbnail(src, dest string) error
- func Mod(i, length int) int
- func MoveToFolder(file, folder string) error
- func NodeText(root *html.Node) string
- func OpenUrl(url string)
- func Parallel[T any](elements []T, callback func(el T) error) error
- func ParallelMap[T any, R any](elements []T, mapper func(el T) (R, error)) ([]R, error)
- func ParseHtml(path string) *html.Node
- func ParseIni[T any](path string) ([]T, error)
- func RenderTemplate(w http.ResponseWriter, temp string, data any)
- func ReplaceFile(src string, data []byte)
- func Reverse[S ~[]E, E any](s S)
- func ServeDir(dir string)
- func StartServer(port int)
- func TrashFile(path string)
- type Error
- type SQL
- type Set
Constants ¶
View Source
const ( Fileperm = 0644 Dirperm = 0755 )
Variables ¶
Functions ¶
func AppendFile ¶
func ClearErrors ¶
func ClearErrors()
func HttpErr ¶
func HttpErr(w http.ResponseWriter, err error)
func MakeThumbnail ¶
func MoveToFolder ¶
func ParallelMap ¶
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, temp string, data any)
func ReplaceFile ¶
func StartServer ¶
func StartServer(port int)
Types ¶
Click to show internal directories.
Click to hide internal directories.