Documentation
¶
Index ¶
- Constants
- func CheckFatal(err error)
- func CloseWithErr(closer io.Closer, prevErr *error)
- func FileExists(path string) bool
- func IsDir(path string) bool
- func Must[T any](val T, err error) T
- func MustRelPath(path string) string
- func Ptr[T any](v T) *T
- func ReadXML(r io.ReadCloser, dst any) error
- func TildePath(path string) string
- func WriteXMLResponse(w http.ResponseWriter, status int, v any)
Constants ¶
View Source
const ( KiB = 1024 MiB = KiB * 1024 GiB = MiB * 1024 TiB = GiB * 1024 )
Variables ¶
This section is empty.
Functions ¶
func CheckFatal ¶
func CheckFatal(err error)
func CloseWithErr ¶
func FileExists ¶
func MustRelPath ¶
func WriteXMLResponse ¶
func WriteXMLResponse(w http.ResponseWriter, status int, v any)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.