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: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Package for working with information about operations for Front
import to progect:
import "github.com/nik19ta/go_server/api/operation"
Funcs:
Record(IsDone bool, map[string]interface{}) return Operation
- recording a new operation
use stract Operation
:
type Operation struct {
IsDone bool
Answer map[string]interface{}
}
Operation
methods:
Send() return []byte, bool
- returns a struct converted to Json
Documentation
¶
type Operation struct {
IsDone bool
Answer map[string]interface{}
}
Operation - Ответ приходящий на сервер
Record - --> Записывает операцию
Send - --> возвращает структуру преобразованную в Json
Source Files
¶
Click to show internal directories.
Click to hide internal directories.