本文整理匯總了Golang中github.com/jmckaskill/go-capnproto.Struct函數的典型用法代碼示例。如果您正苦於以下問題:Golang Struct函數的具體用法?Golang Struct怎麽用?Golang Struct使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Struct函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Methods
func (s NodeInterface) Methods() Method_List { return Method_List(C.Struct(s).GetObject(3)) }
示例2: SetTargetsMethod
func (s NodeAnnotation) SetTargetsMethod(v bool) { C.Struct(s).Set1(121, v) }
示例3: SetTargetsParam
func (s NodeAnnotation) SetTargetsParam(v bool) { C.Struct(s).Set1(122, v) }
示例4: SetTargetsGroup
func (s NodeAnnotation) SetTargetsGroup(v bool) { C.Struct(s).Set1(119, v) }
示例5: SetTargetsInterface
func (s NodeAnnotation) SetTargetsInterface(v bool) { C.Struct(s).Set1(120, v) }
示例6: TargetsField
func (s NodeAnnotation) TargetsField() bool { return C.Struct(s).Get1(117) }
示例7: SetTargetsUnion
func (s NodeAnnotation) SetTargetsUnion(v bool) { C.Struct(s).Set1(118, v) }
示例8: SetValue
func (s NodeConst) SetValue(v Value) { C.Struct(s).SetObject(4, C.Object(v)) }
示例9: SetAnnotation
func (s Node) SetAnnotation() { C.Struct(s).Set16(12, 5) }
示例10: SetType
func (s NodeConst) SetType(v Type) { C.Struct(s).SetObject(3, C.Object(v)) }
示例11: Value
func (s NodeConst) Value() Value { return Value(C.Struct(s).GetObject(4).ToStruct()) }
示例12: Type
func (s NodeConst) Type() Type { return Type(C.Struct(s).GetObject(3).ToStruct()) }
示例13: SetConst
func (s Node) SetConst() { C.Struct(s).Set16(12, 4) }
示例14: SetMethods
func (s NodeInterface) SetMethods(v Method_List) { C.Struct(s).SetObject(3, C.Object(v)) }
示例15: TargetsStruct
func (s NodeAnnotation) TargetsStruct() bool { return C.Struct(s).Get1(116) }