Discover Packages
github.com/mbaraa/sheev
models
package
Version:
v0.0.0-...-0bea188
Opens a new window with list of versions in this module.
Published: Apr 17, 2023
License: MIT
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.
Documentation
Documentation
¶
type Field struct {
Name string `json:"name"`
FormName string `json:"form_name"`
FieldType FieldType `json:"field_type"`
Position shapes .Point2 `json:"position"`
Savable bool `json:"savable"`
Content map[string ]interface{} `json:"content"`
}
Field represents a field in a form
FieldType defines the type of the field
const (
TextField FieldType = iota
SelectionField
MultiLinedTextField
)
FieldType enums
type Form struct {
Name string `json:"name"`
Fields []Field `json:"fields"`
B64FormImg string `json:"form_img"`
}
Form represents a form :]
CopyForm returns a copy of the current form (to avoid pointers fuckery)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.