Versions in this module Expand all Collapse all v0 v0.1.0 Mar 26, 2021 Changes in this version + const TimeDay + const TimeFormatDateTime + const TimeFormatDateTimeWithDash + const TimeHour12 + const TimeHour24 + const TimeISO8601ColonSecondsTZ + const TimeISO8601ColonTZ + const TimeISO8601SecondsTZ + const TimeISO8601ShortTZ + const TimeISO8601TZ + const TimeLongMonth + const TimeLongWeekDay + const TimeLongYear + const TimeMinute + const TimeMonth + const TimeNumColonSecondsTZ + const TimeNumColonTZ + const TimeNumMonth + const TimeNumSecondsTz + const TimeNumShortTZ + const TimeNumTZ + const TimePM + const TimeSecond + const TimeTZ + const TimeWeekDay + const TimeYear + const TimeZeroDay + const TimeZeroHour12 + const TimeZeroMinute + const TimeZeroMonth + const TimeZeroSecond + const Timepm + func Atof(v string, d float64) float64 + func Atoi(v string, d int) int + func Atoi64(v string, d int64) int64 + func Clone(ctx context.Context, source interface{}, target interface{}) (err error) + func FormatLayout(layout string) string + func FormatTime(t *time.Time, format string) string + func Ftoa(v float64) string + func IsEmpty(s string) bool + func IsNotEmpty(s string) bool + func LastString(s string, num int) string + func Now(offset int) time.Time + func PadLeft(s string, lenght int, char string) string + func ParseTime(v string, layout string, d *time.Time) *time.Time + func Round32(val float32, roundOn float32, places int) (newVal float32) + func Round64(val float64, roundOn float64, places int) (newVal float64) + func SwitchTimezone(t time.Time, offset int) time.Time + func ToInt(v interface{}, defaultValue int) int + func ToString(v interface{}, defaultValue string) string + func Today(offset int) time.Time + func WithContext(ctx context.Context, app Context) context.Context + type Binder interface + Bind func(ctx context.Context, data map[string]string) error + type Boolean struct + func NewBoolean(val bool) Boolean + func (b *Boolean) Scan(value interface{}) error + func (b *Boolean) UnmarshalJSON(data []byte) error + func (b Boolean) MarshalJSON() ([]byte, error) + func (b Boolean) Value() (driver.Value, error) + func (f *Boolean) GetValue() bool + func (f *Boolean) Ptr() *bool + func (f *Boolean) SetValue(i bool) + func (f Boolean) String() string + type Cloner interface + Clone func(ctx context.Context, target interface{}) error + type Context struct + AcceptLanuage string + RequestID int + TimeJSON string + TimeLayout string + TimeOffset int + func FromContext(ctx context.Context) Context + type Contexter interface + SetContext func(ctx context.Context) + type Field struct + type Float32 struct + func NewFloat32(val float32) Float32 + func (f *Float32) GetValue() float32 + func (f *Float32) Ptr() *float32 + func (f *Float32) Scan(value interface{}) error + func (f *Float32) SetValue(i float32) + func (f *Float32) UnmarshalJSON(data []byte) error + func (f Float32) MarshalJSON() ([]byte, error) + func (f Float32) String() string + func (f Float32) Value() (driver.Value, error) + type Float64 struct + func NewFloat64(val float64) Float64 + func (f *Float64) GetValue() float64 + func (f *Float64) Ptr() *float64 + func (f *Float64) Scan(value interface{}) error + func (f *Float64) SetValue(i float64) + func (f *Float64) UnmarshalJSON(data []byte) error + func (f Float64) MarshalJSON() ([]byte, error) + func (f Float64) String() string + func (f Float64) Value() (driver.Value, error) + type Form struct + Fields map[string]*Field + Keys []string + func NewForm() Form + func (m *Form) Add(key, value string) *Form + func (m *Form) AddJSON(key, value string, quote bool) *Form + func (m *Form) EncodeURL() string + func (m *Form) Get(key string) string + func (m *Form) Join(sep string) string + func (m *Form) JoinAll(sep string) string + func (m *Form) JoinFunc(each func(key, value string) (string, bool), sep string, sortFirst bool) string + func (m *Form) JoinValues(sep string) string + func (m *Form) SortAndJoin(sep string) string + func (m *Form) SortAndJoinAll(sep string) string + func (m *Form) ToForm() map[string]string + func (m *Form) ToJSON() string + func (m *Form) Update(key, value string, quote bool) *Form + type Int struct + func NewInt(val int) Int + func (f *Int) GetValue() int + func (f *Int) Ptr() *int + func (f *Int) Scan(value interface{}) error + func (f *Int) SetValue(i int) + func (f *Int) UnmarshalJSON(data []byte) error + func (f Int) MarshalJSON() ([]byte, error) + func (f Int) String() string + func (f Int) Value() (driver.Value, error) + type Int32 struct + func NewInt32(val int32) Int32 + func (f *Int32) GetValue() int32 + func (f *Int32) Ptr() *int32 + func (f *Int32) Scan(value interface{}) error + func (f *Int32) SetValue(i int32) + func (f *Int32) UnmarshalJSON(data []byte) error + func (f Int32) MarshalJSON() ([]byte, error) + func (f Int32) String() string + func (f Int32) Value() (driver.Value, error) + type Int64 struct + func NewInt64(val int64) Int64 + func (f *Int64) GetValue() int64 + func (f *Int64) Ptr() *int64 + func (f *Int64) Scan(value interface{}) error + func (f *Int64) SetValue(i int64) + func (f *Int64) UnmarshalJSON(data []byte) error + func (f Int64) MarshalJSON() ([]byte, error) + func (f Int64) String() string + func (f Int64) Value() (driver.Value, error) + type Object interface + IsNull func() bool + type String struct + func NewString(val string) String + func (s *String) GetValue() string + func (s *String) HasValue() bool + func (s *String) IsNull() bool + func (s *String) Ptr() *string + func (s *String) Scan(value interface{}) error + func (s *String) SetValue(v string) + func (s *String) UnmarshalJSON(data []byte) error + func (s String) MarshalJSON() ([]byte, error) + func (s String) String() string + func (s String) Value() (driver.Value, error) + type StringBuilder struct + func (sb *StringBuilder) AppendLine(args ...interface{}) *StringBuilder + func (sb *StringBuilder) AppendLinef(format string, args ...interface{}) *StringBuilder + type Time struct + func NewTime(val time.Time) Time + func (t *Time) GetValue() time.Time + func (t *Time) IsNull() bool + func (t *Time) MarshalBSON() ([]byte, error) + func (t *Time) Ptr() *time.Time + func (t *Time) Scan(value interface{}) (err error) + func (t *Time) SetContext(ctx context.Context) + func (t *Time) SetValue(v time.Time) + func (t *Time) UnmarshalBSON(data []byte) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) String() string + func (t Time) Value() (driver.Value, error)