Documentation ¶
Index ¶
- func ArrayToString(vals []Json) string
- func DoubleQuoted(val interface{}) any
- func IsChange(a, b Json) bool
- func IsDiferent(a, b Json) bool
- func NotInSlice(la, lb []Json, key string) []string
- func Quoted(val interface{}) any
- func SliceFindIndex(item Json, list []Json, key string) int
- func ToString(val interface{}) string
- func Val(data Json, _default any, atribs ...string) any
- type Item
- func (it *Item) Any(_default any, atribs ...string) *generic.Any
- func (it *Item) Array(atrib string) []Json
- func (it *Item) ArrayStr(atrib string) []string
- func (it *Item) Bool(atribs ...string) bool
- func (it *Item) Consolidate(toField string, ruleOut ...string) Json
- func (it *Item) ConsolidateAndUpdate(toField string, ruleOut []string, new Json) (Json, error)
- func (it *Item) Del(key string) bool
- func (it *Item) Get(key string) interface{}
- func (it *Item) Id() string
- func (it *Item) IdT() string
- func (it *Item) Index() int
- func (it *Item) Int(atribs ...string) int
- func (it *Item) IsChange(new Json) bool
- func (it *Item) IsDiferent(new Json) bool
- func (it *Item) Json(atribs ...string) Json
- func (it *Item) Key(atribs ...string) string
- func (it *Item) Lowcase(_default string, atribs ...string) string
- func (it *Item) Num(atribs ...string) float64
- func (it *Item) Scan(rows *sql.Rows) error
- func (it *Item) Set(key string, val any) bool
- func (it *Item) Str(atribs ...string) string
- func (it *Item) Time(atribs ...string) time.Time
- func (it *Item) Titlecase(_default string, atribs ...string) string
- func (it *Item) ToByte() []byte
- func (it *Item) ToJson() Json
- func (it *Item) ToScan(src interface{}) error
- func (it *Item) ToString() string
- func (it *Item) Uppcase(_default string, atribs ...string) string
- func (it *Item) ValAny(_default any, atribs ...string) any
- func (it *Item) ValBool(_default bool, atribs ...string) bool
- func (it *Item) ValInt(_default int, atribs ...string) int
- func (it *Item) ValJson(_default Json, atribs ...string) Json
- func (it *Item) ValNum(_default float64, atribs ...string) float64
- func (it *Item) ValStr(_default string, atribs ...string) string
- func (it *Item) ValTime(_default time.Time, atribs ...string) time.Time
- type Items
- func (it *Items) Bool(idx int, atribs ...string) bool
- func (it *Items) Del(idx int, key string) bool
- func (it *Items) Get(idx int, key string) interface{}
- func (it *Items) Id(idx int) string
- func (it *Items) IdT(idx int) string
- func (it *Items) Int(idx int, atribs ...string) int
- func (it *Items) Json(idx int, atribs ...string) Json
- func (it *Items) Key(idx int, atribs ...string) string
- func (it *Items) Lowcase(idx int, _default string, atribs ...string) string
- func (it *Items) Num(idx int, atribs ...string) float64
- func (it *Items) Scan(src interface{}) error
- func (it *Items) Set(idx int, key string, val interface{}) bool
- func (it *Items) Str(idx int, atribs ...string) string
- func (it *Items) Titlecase(idx int, _default string, atribs ...string) string
- func (it *Items) ToJson() Json
- func (it *Items) ToList(all, page, rows int) List
- func (it *Items) ToString() string
- func (it *Items) Uppcase(idx int, _default string, atribs ...string) string
- func (it *Items) ValAny(idx int, _default any, atribs ...string) any
- func (it *Items) ValStr(idx int, _default string, atribs ...string) string
- type Json
- func ApendJson(m Json, n Json) Json
- func ByteToJson(scr interface{}) Json
- func Merge(a, b Json) (Json, bool)
- func OkOrNotJson(condition bool, ok Json, not Json) Json
- func ToJson(src interface{}) (Json, error)
- func ToJsonArray(vals []interface{}) ([]Json, error)
- func ToUnit8Json(src interface{}) Json
- func Update(a, b Json) (Json, bool)
- func (s Json) Any(_default any, atribs ...string) *generic.Any
- func (s Json) Apend(n Json) error
- func (s Json) Array(atrib string) []Json
- func (s Json) ArrayAny(atrib string) []any
- func (s Json) ArrayStr(atrib string) []string
- func (s Json) Bool(atribs ...string) bool
- func (s Json) Consolidate(toField string, ruleOut ...string) Json
- func (s Json) ConsolidateAndUpdate(toField string, ruleOut []string, new Json) (Json, error)
- func (s Json) Del(key string) bool
- func (s Json) ExistKey(key string) bool
- func (s Json) Get(key string) interface{}
- func (s Json) Id() string
- func (s Json) IdT() string
- func (s Json) Index() int
- func (s Json) Int(atribs ...string) int
- func (s Json) IsChange(new Json) bool
- func (s Json) IsDiferent(new Json) bool
- func (s Json) Json(atrib string) Json
- func (s Json) Key(atribs ...string) string
- func (s Json) Num(atribs ...string) float64
- func (s *Json) Scan(src interface{}) error
- func (s Json) Set(key string, val interface{}) bool
- func (s Json) Str(atribs ...string) string
- func (s Json) Time(atribs ...string) time.Time
- func (s Json) ToByte() []byte
- func (s Json) ToItem(src interface{}) Item
- func (s Json) ToQuoted() string
- func (s *Json) ToScan(src interface{}) error
- func (s Json) ToString() string
- func (s Json) Update(fromJson Json) error
- func (s Json) ValAny(_default any, atribs ...string) any
- func (s Json) ValBool(_default bool, atribs ...string) bool
- func (s Json) ValInt(_default int, atribs ...string) int
- func (s Json) ValJson(_default Json, atribs ...string) Json
- func (s Json) ValNum(_default float64, atribs ...string) float64
- func (s Json) ValStr(_default string, atribs ...string) string
- func (s Json) ValTime(_default time.Time, atribs ...string) time.Time
- func (s Json) Value() (driver.Value, error)
- type List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func DoubleQuoted ¶
func DoubleQuoted(val interface{}) any
func IsChange ¶
* * Compara b contra a y se establece que si ubo cambio si y solo si * los valor de b esta en a y alguno es direfernte *
func IsDiferent ¶
* * Compara b contra a y se establece que es diferente si y solo si * los valor de b no estan en a o los valores de b son diferentes en a *
func NotInSlice ¶
Types ¶
type Item ¶
func (*Item) ConsolidateAndUpdate ¶
func (*Item) IsDiferent ¶
type Json ¶
type Json map[string]interface{}
func ByteToJson ¶ added in v0.0.9
func ByteToJson(scr interface{}) Json
func ToJsonArray ¶
func ToUnit8Json ¶
func ToUnit8Json(src interface{}) Json
func (Json) ConsolidateAndUpdate ¶
func (Json) IsDiferent ¶
Click to show internal directories.
Click to hide internal directories.