github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/doc.objc.h.golden (about) 1 // Objective-C API for talking to doc Go package. 2 // gobind -lang=objc doc 3 // 4 // File is generated by gobind. Do not edit. 5 6 #ifndef __Doc_H__ 7 #define __Doc_H__ 8 9 @import Foundation; 10 #include "ref.h" 11 #include "Universe.objc.h" 12 13 14 @class DocNoDoc; 15 @class DocS; 16 @class DocS2; 17 @protocol DocI; 18 @class DocI; 19 20 @protocol DocI <NSObject> 21 - (void)im; 22 @end 23 24 /** 25 * A generic comment with <HTML>. 26 */ 27 @interface DocNoDoc : NSObject <goSeqRefInterface> { 28 } 29 @property(strong, readonly) _Nonnull id _ref; 30 31 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 32 - (nonnull instancetype)init; 33 @end 34 35 /** 36 * S is a struct. 37 */ 38 @interface DocS : NSObject <goSeqRefInterface> { 39 } 40 @property(strong, readonly) _Nonnull id _ref; 41 42 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 43 /** 44 * NewS is a constructor. 45 */ 46 - (nullable instancetype)init; 47 /** 48 * SF is a field. 49 */ 50 @property (nonatomic) NSString* _Nonnull sf; 51 /** 52 * Anonymous field. 53 */ 54 @property (nonatomic) DocS2* _Nullable s2; 55 /** 56 * Multiple fields. 57 */ 58 @property (nonatomic) NSString* _Nonnull f1; 59 /** 60 * Multiple fields. 61 */ 62 @property (nonatomic) NSString* _Nonnull f2; 63 /** 64 * After is another method. 65 */ 66 - (void)after; 67 - (void)before; 68 @end 69 70 /** 71 * S2 is a struct. 72 */ 73 @interface DocS2 : NSObject <goSeqRefInterface> { 74 } 75 @property(strong, readonly) _Nonnull id _ref; 76 77 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 78 - (nonnull instancetype)init; 79 @end 80 81 /** 82 * C is a constant. 83 */ 84 FOUNDATION_EXPORT const BOOL DocC; 85 86 @interface Doc : NSObject 87 /** 88 * A group of vars. 89 */ 90 + (double) noDocVar; 91 + (void) setNoDocVar:(double)v; 92 93 /** 94 * A specific var. 95 */ 96 + (NSString* _Nonnull) specific; 97 + (void) setSpecific:(NSString* _Nonnull)v; 98 99 /** 100 * V is a var. 101 */ 102 + (NSString* _Nonnull) v; 103 + (void) setV:(NSString* _Nonnull)v; 104 105 @end 106 107 /** 108 * F is a function. 109 */ 110 FOUNDATION_EXPORT void DocF(void); 111 112 /** 113 * NewS is a constructor. 114 */ 115 FOUNDATION_EXPORT DocS* _Nullable DocNewS(void); 116 117 @class DocI; 118 119 /** 120 * I is an interface. 121 */ 122 @interface DocI : NSObject <goSeqRefInterface, DocI> { 123 } 124 @property(strong, readonly) _Nonnull id _ref; 125 126 - (nonnull instancetype)initWithRef:(_Nonnull id)ref; 127 /** 128 * IM is a method. 129 */ 130 - (void)im; 131 @end 132 133 #endif