package
Version:
v0.0.0-...-0fb43f7
Opens a new window with list of versions in this module.
Published: May 3, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
wwd - working with directories 📂
Package for working with directories
import to progect:
import "github.com/nik19ta/go_server/api/wwd"
Funcs:
RecordDir(path string) return Dir
- Creates a new instance of the Dir
struct
CreateDir(name)
- Create new directory
use stract Dir
:
type Dir struct {
Name string
Files []wwf.File
}
Dir
methods
Rename(newName) return true or false
- Rename dir
Delete() -> true or false
- Delete dir
Send() return []byte, bool
- returns a struct converted to Json
Documentation
¶
CreateDir - создает новую папку <-- принимает имя папки --> возвращает true в случае создания, false в случае неудачи
TakeWorkDir - возвращает рабочюю дирикторию
Dir - структура папок
RecordDir - Создает новый экземпляр Структуры Dir
Delete - удаляет папку --> возвращает true в случае удаления, false в случае неудачи
Rename - Меняет имя папки <-- принимает полное, новое имя файла --> возвращает true в случае успешной смены имени, false в случае неудачи
Send - --> возвращает структуру преобразованную в Json
Source Files
¶
Click to show internal directories.
Click to hide internal directories.