atrib

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atrib

type Atrib struct {
	Name         string      `json:"name"`
	Type         TypeAtrib   `json:"type"`
	Definition   et.Json     `json:"definition"`
	DefaultValue interface{} `json:"default_value"`
}

func NewAtrib

func NewAtrib(name string, typeAtrib TypeAtrib) *Atrib

*

  • NewAtrib
  • @param name string
  • @param typeAtrib TypeAtrib
  • @return *Atrib

func (*Atrib) Json

func (s *Atrib) Json() (et.Json, error)

*

  • Json
  • @return et.Json, error

func (*Atrib) Load

func (s *Atrib) Load(data et.Json) error

*

  • Load
  • @param data et.Json
  • @return error

type TypeAtrib

type TypeAtrib int
const (
	AtribTypeText TypeAtrib = iota
	AtribTypeNumber
	AtribTypeDate
	AtribTypeBoolean
	AtribTypeEnum
	AtribTypeLookup
	AtribTypeLookupMulti
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL