# README
Estructuras que utilizo con frecuencia en proyectos escritos en Go
ejemplo de uso en un objeto
func MedicalHistory() model.Object {
return model.Object{
Name: "medicalhistory",
PrincipalFieldsName: []string{"service_name"},
Fields: []model.Field{
{Name: "id_medicalhistory", Legend: "id", Input: unixid.InputPK()},
{Name: "id_patient", Legend: "paciente", Input: unixid.InputPK()},
{Name: "staff_id", Legend: "Id", Input: unixid.InputPK()},
{Name: "staff_name", Legend: "Atendido por", Input: input.Text()},
{Name: "staff_ocupation", Legend: "Especialidad", Input: input.Text()},
{Name: "staff_area", Legend: "Area", Input: input.Check(Area{})},
{Name: "service_id", Legend: "Prestación", Input: unixid.InputPK()},
{Name: "day_attention", Legend: "Dia Atención", Input: input.Date()},
{Name: "hour_attention", Legend: "Hora", Input: input.Hour(`min="08:15"`, `max="20:15"`)},
{Name: "reason", Legend: "Motivo Consulta, Servicio o Procedimiento", Input: input.TextArea()},
{Name: "diagnostic", Legend: "Diagnostico (Descripción)", Input: input.TextArea()},
{Name: "prescription", Legend: "Prescripción (Conclusion)", Input: input.TextArea()},
{Name: "last_print_file", Legend: "Ultima Impresión en Archivo", Input: input.Text()},
},
}
}
# Constants
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
default 2 minutes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
index.html ej: {{.StyleSheet}} {{.AppName}} {{.AppVersion}} {{.SpriteIcons}} {{.Menu}} {{.Message}} {{.UserName}} {{.UserArea}} {{.Modules}} {{.Script}} {{.Data}}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
todo el contenido html por defecto del objeto.
No description provided by the author
on_server_too ej si se esta en frontend se envía también al backend la solicitud async_results optional (nil) usado en indexdb.
si nombre del objeto no se ingresa se codifica a json de forma normal.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DateFormatStructPointer ej type DateFormat struct { LeftDay bool //true ej: "30-12-2001", default false: "2006-01-02" WithSeconds bool //ej: 2006-01-02, 15:04, WithSeconds true = 15:04:05 }.
No description provided by the author
No description provided by the author
ej: time.Now().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author