-
Notifications
You must be signed in to change notification settings - Fork 18
/
variant.go
47 lines (42 loc) · 1.09 KB
/
variant.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2021 Converter Systems LLC. All rights reserved.
package ua
// VariantTypes
const (
VariantTypeNull byte = iota
VariantTypeBoolean
VariantTypeSByte
VariantTypeByte
VariantTypeInt16
VariantTypeUInt16
VariantTypeInt32
VariantTypeUInt32
VariantTypeInt64
VariantTypeUInt64
VariantTypeFloat
VariantTypeDouble
VariantTypeString
VariantTypeDateTime
VariantTypeGUID
VariantTypeByteString
VariantTypeXMLElement
VariantTypeNodeID
VariantTypeExpandedNodeID
VariantTypeStatusCode
VariantTypeQualifiedName
VariantTypeLocalizedText
VariantTypeExtensionObject
VariantTypeDataValue
VariantTypeVariant
VariantTypeDiagnosticInfo
)
/*
Variant stores a single value or slice of the following types:
bool, int8, uint8, int16, uint16, int32, uint32
int64, uint64, float32, float64, string
time.Time, uuid.UUID, ByteString, XmlElement
NodeId, ExpandedNodeId, StatusCode, QualifiedName
LocalizedText, DataValue, Variant
In addition, you may store any type that is registered with the BinaryEncoder.
These types will be encoded as an ExtensionObject by the BinaryEncoder.
*/
type Variant any