Documentation
¶
Index ¶
- func FormatFileSize(size int64) string
- func FormatModTime(modTime string) string
- func GetLocalIP() string
- func IsDir(path string) bool
- func IsFile(path string) bool
- func ResolvePath(sharedDir, raw string) (string, error)
- func SendJSON(w http.ResponseWriter, data any, status int)
- type File
- type ServerStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFileSize ¶
func FormatModTime ¶
func GetLocalIP ¶
func GetLocalIP() string
func ResolvePath ¶
ResolvePath returns the absolute safe path inside sharedDir
Types ¶
Click to show internal directories.
Click to hide internal directories.