Documentation ¶
Index ¶
- func CleanRut(rut *string)
- func GenerateJWT(id uint64, email string, username string) (tokenString string, err error)
- func GenerateWhereFilter(filters []string, queryParams url.Values) (map[string]interface{}, error)
- func GetLimitOffset(queryParams url.Values) (int, int, error)
- func InsertNth(s string, n int, symbol rune) string
- func IsValidRut(rut string) (bool, error)
- func JSONErrorOutput(writer http.ResponseWriter, status int, msg string)
- func PrettyRut(rut *string)
- func Reverse(s string) string
- type Date
- func (date Date) Format(s string) string
- func (date *Date) GobDecode(b []byte) error
- func (date Date) GobEncode() ([]byte, error)
- func (date Date) GormDataType() string
- func (date Date) MarshalJSON() ([]byte, error)
- func (date *Date) Scan(value interface{}) (err error)
- func (date *Date) UnmarshalJSON(b []byte) error
- func (date Date) Value() (driver.Value, error)
- type DateTime
- func (dateTime DateTime) Format(s string) string
- func (date *DateTime) GobDecode(b []byte) error
- func (date DateTime) GobEncode() ([]byte, error)
- func (date DateTime) GormDataType() string
- func (dateTime DateTime) MarshalJSON() ([]byte, error)
- func (date *DateTime) Scan(value interface{}) (err error)
- func (dateTime *DateTime) UnmarshalJSON(b []byte) error
- func (date DateTime) Value() (driver.Value, error)
- type ErrorMessage
- type JWTClaim
- type RutType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
func GenerateWhereFilter ¶
func IsValidRut ¶
func JSONErrorOutput ¶
func JSONErrorOutput(writer http.ResponseWriter, status int, msg string)
Types ¶
type DateTime ¶
func (DateTime) GormDataType ¶
func (DateTime) MarshalJSON ¶
func (*DateTime) UnmarshalJSON ¶
type ErrorMessage ¶
type ErrorMessage struct {
ErrorMessage string `json:"error_message"`
}
Click to show internal directories.
Click to hide internal directories.