| // Objective-C API for talking to structs Go package. |
| // gobind -lang=objc structs |
| // |
| // File is generated by gobind. Do not edit. |
| |
| #ifndef __GoStructs_H__ |
| #define __GoStructs_H__ |
| |
| @import Foundation; |
| #include "GoUniverse.h" |
| |
| |
| @class GoStructsS; |
| @class GoStructsS2; |
| @protocol GoStructsI; |
| @class GoStructsI; |
| |
| @interface GoStructsS : NSObject <goSeqRefInterface> { |
| } |
| @property(strong, readonly) id _ref; |
| |
| - (id)initWithRef:(id)ref; |
| - (double)x; |
| - (void)setX:(double)v; |
| - (double)y; |
| - (void)setY:(double)v; |
| - (GoStructsS*)identity:(NSError**)error; |
| - (double)sum; |
| @end |
| |
| @interface GoStructsS2 : NSObject <goSeqRefInterface> { |
| } |
| @property(strong, readonly) id _ref; |
| |
| - (id)initWithRef:(id)ref; |
| - (void)m; |
| - (NSString*)string; |
| @end |
| |
| @protocol GoStructsI <NSObject> |
| - (void)m; |
| @end |
| |
| FOUNDATION_EXPORT GoStructsS* GoStructsIdentity(GoStructsS* s); |
| |
| FOUNDATION_EXPORT GoStructsS* GoStructsIdentityWithError(GoStructsS* s, NSError** error); |
| |
| @class GoStructsI; |
| |
| @interface GoStructsI : NSObject <goSeqRefInterface, GoStructsI> { |
| } |
| @property(strong, readonly) id _ref; |
| |
| - (instancetype)initWithRef:(id)ref; |
| - (void)m; |
| @end |
| |
| #endif |