mirror of https://bitbucket.org/ausocean/av.git
Improved Property doc comment.
This commit is contained in:
parent
3ab2c1f69a
commit
65d0952dd3
|
@ -75,10 +75,15 @@ type Object struct {
|
||||||
Properties []Property
|
Properties []Property
|
||||||
}
|
}
|
||||||
|
|
||||||
// Property represents an AMF property.
|
// Property represents an AMF property, which is effectively a
|
||||||
|
// union. The Type is the AMF data type (uint8 per the specification),
|
||||||
|
// and specifies which member holds a value. Numeric types use
|
||||||
|
// Number, string types use String and arrays and objects use
|
||||||
|
// Object. The Name is optional.
|
||||||
type Property struct {
|
type Property struct {
|
||||||
Name string
|
|
||||||
Type uint8
|
Type uint8
|
||||||
|
|
||||||
|
Name string
|
||||||
Number float64
|
Number float64
|
||||||
String string
|
String string
|
||||||
Object Object
|
Object Object
|
||||||
|
|
Loading…
Reference in New Issue