Documentation ¶
Index ¶
- Variables
- func Add(b, a interface{}) (interface{}, error)
- func CopyDirContent(src string, dst string) error
- func CopyFile(src, dst string) error
- func CreateNewDir(path string) error
- func Exec(command string)
- func GenerateUUID() string
- func GetCurrentPath() string
- func IsDirExists(dirPath string) bool
- func IsFileExists(filename string) bool
- func Move(oldLocation string, newLocation string) error
- func OpenBrowser(url string)
- func RemoveDir(path string) error
- func WriteFile(filename string, content string)
- func WsHandler(w http.ResponseWriter, r *http.Request, body interface{}) (*websocket.Conn, error)
- type MarshalFunc
- type Repo
- type UnmarshalFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var WebSocketUpgrade = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
}
WebSocketUpgrade buffer size.
Functions ¶
func CopyDirContent ¶
CopyDirContent copies dir content.
func CreateNewDir ¶
CreateNewDir creates new folder in current file system.
func IsFileExists ¶
IsFileExists returns is file exists flag.
func OpenBrowser ¶
func OpenBrowser(url string)
OpenBrowser opens web browser in different platforms.
Types ¶
type MarshalFunc ¶
MarshalFunc returns byte data.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo contain repository object.
func (*Repo) SaveCommit ¶
SaveCommit save commit meta.
type UnmarshalFunc ¶
UnmarshalFunc gets byte data.
Click to show internal directories.
Click to hide internal directories.