fields

package
v1.1.36 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFieldDefs

func BuildFieldDefs(fields string) (fds map[int]*chutils.FieldDef, inputMap map[string]keyval.KeyVal, err error)

BuildFieldDefs builds a FieldDef map (required by TableDef) from the fields string. The fields string is a KeyVal representation of the FieldDef. The keys are:

  • name: field name
  • order: order of field in the table, starting with 0
  • type: field type (int, float, string, fixedString, date)
  • length: length of field, required for int, float, fixedString
  • desc: field description
  • miss: value to use if the observed value is illegal
  • default: value to use if the observed value is null
  • levels: comma-separated list of legal values
  • high: maximum level
  • low: minimum level
  • format: Go-style date format (e.g. 20060102, 1/2/2006)
  • drop: yes/no drop field when creating a table.

The inputMap is a KeyVal represention of the fields string. The key is the field name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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