2
0
mirror of synced 2025-02-24 15:28:28 +00:00
mobile/bind/testdata/structs.objc.h.golden
Elias Naur 1a0b242e59 mobile/bind: let Java toString call String method if available
Bind generates a default toString for Go structs. If the struct has
a String() string method, use that instead.

Change-Id: If83a6f5c9ad03abbd0b939b9120ff8dd2135f713
Reviewed-on: https://go-review.googlesource.com/20656
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-03-14 13:30:01 +00:00

57 lines
1.0 KiB
Plaintext

// 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__
#include <Foundation/Foundation.h>
@class GoStructsS;
@class GoStructsS2;
@protocol GoStructsI;
@class GoStructsI;
@interface GoStructsS : NSObject {
}
@property(strong, readonly) id _ref;
- (id)initWithRef:(id)ref;
- (double)x;
- (void)setX:(double)v;
- (double)y;
- (void)setY:(double)v;
- (BOOL)identity:(GoStructsS**)ret0_ error:(NSError**)error;
- (double)sum;
@end
@interface GoStructsS2 : NSObject {
}
@property(strong, readonly) id _ref;
- (id)initWithRef:(id)ref;
- (void)m;
- (NSString*)string;
@end
@protocol GoStructsI
- (void)m;
@end
FOUNDATION_EXPORT GoStructsS* GoStructsIdentity(GoStructsS* s);
FOUNDATION_EXPORT BOOL GoStructsIdentityWithError(GoStructsS* s, GoStructsS** ret0_, NSError** error);
@class GoStructsI;
@interface GoStructsI : NSObject <GoStructsI> {
}
@property(strong, readonly) id _ref;
- (id)initWithRef:(id)ref;
- (void)m;
@end
#endif