Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2022 Changes in this version + func CustomersSerialize(c Customers, filename string) error + func GetConnection() (*sql.DB, error) + type Customer struct + City string + Country string + CreatedAt Dato + Id int + Mail string + Name string + State string + UpdatedAt Dato + func CustomersDeserialize(filename string) ([]Customer, error) + func (c *Customer) AddCustomer(db *sql.DB) (int64, error) + func (c *Customer) FindAll(db *sql.DB) (Customers, error) + func (c *Customer) FindAllPrepared(db *sql.DB) (Customers, error) + func (c *Customer) FindById(db *sql.DB, id int64) (Customer, error) + func (c *Customer) FindToJson(db *sql.DB, state string) (Customers, error) + func (c *Customer) UpdateCustomer(db *sql.DB, id int64) (int64, error) + type Customers []Customer + type Dato struct + func (d *Dato) UnmarshalJSON(b []byte) error + func (d Dato) MarshalJSON() ([]byte, error)