| 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 |
/** |
| 22 |
* IM is a method. |
| 23 |
*/ |
| 24 |
- (void)im; |
| 25 |
@end |
| 26 |
|
| 27 |
/** |
| 28 |
* A generic comment with <HTML>. |
| 29 |
*/ |
| 30 |
@interface DocNoDoc : NSObject <goSeqRefInterface> { |
| 31 |
} |
| 32 |
@property(strong, readonly) _Nonnull id _ref; |
| 33 |
|
| 34 |
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
| 35 |
- (nonnull instancetype)init; |
| 36 |
@end |
| 37 |
|
| 38 |
/** |
| 39 |
* S is a struct. |
| 40 |
*/ |
| 41 |
@interface DocS : NSObject <goSeqRefInterface> { |
| 42 |
} |
| 43 |
@property(strong, readonly) _Nonnull id _ref; |
| 44 |
|
| 45 |
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
| 46 |
/** |
| 47 |
* NewS is a constructor. |
| 48 |
*/ |
| 49 |
- (nullable instancetype)init; |
| 50 |
/** |
| 51 |
* SF is a field. |
| 52 |
*/ |
| 53 |
@property (nonatomic) NSString* _Nonnull sf; |
| 54 |
/** |
| 55 |
* Anonymous field. |
| 56 |
*/ |
| 57 |
@property (nonatomic) DocS2* _Nullable s2; |
| 58 |
/** |
| 59 |
* Multiple fields. |
| 60 |
*/ |
| 61 |
@property (nonatomic) NSString* _Nonnull f1; |
| 62 |
/** |
| 63 |
* Multiple fields. |
| 64 |
*/ |
| 65 |
@property (nonatomic) NSString* _Nonnull f2; |
| 66 |
/** |
| 67 |
* After is another method. |
| 68 |
*/ |
| 69 |
- (void)after; |
| 70 |
- (void)before; |
| 71 |
@end |
| 72 |
|
| 73 |
/** |
| 74 |
* S2 is a struct. |
| 75 |
*/ |
| 76 |
@interface DocS2 : NSObject <goSeqRefInterface> { |
| 77 |
} |
| 78 |
@property(strong, readonly) _Nonnull id _ref; |
| 79 |
|
| 80 |
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
| 81 |
- (nonnull instancetype)init; |
| 82 |
@end |
| 83 |
|
| 84 |
/** |
| 85 |
* C is a constant. |
| 86 |
*/ |
| 87 |
FOUNDATION_EXPORT const BOOL DocC; |
| 88 |
|
| 89 |
@interface Doc : NSObject |
| 90 |
/** |
| 91 |
* A group of vars. |
| 92 |
*/ |
| 93 |
+ (double) noDocVar; |
| 94 |
+ (void) setNoDocVar:(double)v; |
| 95 |
|
| 96 |
/** |
| 97 |
* A specific var. |
| 98 |
*/ |
| 99 |
+ (NSString* _Nonnull) specific; |
| 100 |
+ (void) setSpecific:(NSString* _Nonnull)v; |
| 101 |
|
| 102 |
/** |
| 103 |
* V is a var. |
| 104 |
*/ |
| 105 |
+ (NSString* _Nonnull) v; |
| 106 |
+ (void) setV:(NSString* _Nonnull)v; |
| 107 |
|
| 108 |
@end |
| 109 |
|
| 110 |
/** |
| 111 |
* F is a function. |
| 112 |
*/ |
| 113 |
FOUNDATION_EXPORT void DocF(void); |
| 114 |
|
| 115 |
/** |
| 116 |
* NewS is a constructor. |
| 117 |
*/ |
| 118 |
FOUNDATION_EXPORT DocS* _Nullable DocNewS(void); |
| 119 |
|
| 120 |
@class DocI; |
| 121 |
|
| 122 |
/** |
| 123 |
* I is an interface. |
| 124 |
*/ |
| 125 |
@interface DocI : NSObject <goSeqRefInterface, DocI> { |
| 126 |
} |
| 127 |
@property(strong, readonly) _Nonnull id _ref; |
| 128 |
|
| 129 |
- (nonnull instancetype)initWithRef:(_Nonnull id)ref; |
| 130 |
/** |
| 131 |
* IM is a method. |
| 132 |
*/ |
| 133 |
- (void)im; |
| 134 |
@end |
| 135 |
|
| 136 |
#endif |