Discover Packages
github.com/Functional-Bus-Description-Language/go-fbdl
internal
val
package
Version:
v0.0.0-...-ea60fba
Opens a new window with list of versions in this module.
Published: Jan 16, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package val provides types for Functional Bus Description Language type system.
BitStr represents FBDL bit string type.
BitStrFromInt converts val.Int to BitStr.
It only checks whether given value can be represented with given width.
It uses U2 encoding for negative values.
BitWidth returns bit width of the bit string.
CharWidth returns character width of the bit string excluding format specifier and leading and trailing '"'.
Bool represents FBDL bool type.
Float represents FBDL float type.
Int represents FBDL integer type.
List represents FBDL list type.
Str represents FBDL string type.
Time represents FBDL time type.
func (t *Time ) Normalize()
type Value interface {
Type() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.