本文整理汇总了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) }