Documentation
¶
Index ¶
- func Check(e error)
- func Commit(manager Manager) error
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dest string) (err error)
- func FileBasename(s string) string
- func FileOrFolderExists(path string) bool
- func FindIndexInArray(predicate func(val interface{}) bool, array interface{}) (exists bool, index int)
- func GetUID() string
- func IsInArray(val interface{}, array interface{}) (exists bool, index int)
- func LoadFromDB(manager Manager)
- func OpenSaveFile(manager Manager, osFlag int) (*os.File, error)
- func WriteJsonResponse(w http.ResponseWriter, body interface{})
- func WriteResponse(w http.ResponseWriter, statusCode int, message string)
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
Thx to https://www.socketloop.com/tutorials/golang-copy-directory-including-sub-directories-files
func CopyFile ¶
Thx to https://www.socketloop.com/tutorials/golang-copy-directory-including-sub-directories-files
func FileBasename ¶
func FileOrFolderExists ¶
func FindIndexInArray ¶
func LoadFromDB ¶
func LoadFromDB(manager Manager)
func WriteJsonResponse ¶
func WriteJsonResponse(w http.ResponseWriter, body interface{})
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, statusCode int, message string)
Types ¶
Click to show internal directories.
Click to hide internal directories.