Since generated names now have their package names prefixed, the extra prefix, "Go", is both confusing and counter-productive to making the generated ObjC code look like any other native code. Change the default to the empty prefix, while preserving support for an explicit prefix if needed. This is a backwards incompatible change; to keep the old behaviour, specify "-prefix Go" to the gobind or gomobile command. While we're here, fix the Ivy example for the recent change in error returns. Change-Id: I7fef4a92a18ddadee972ccf359652e3b31624f33 Reviewed-on: https://go-review.googlesource.com/34643 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
33 lines
699 B
Plaintext
33 lines
699 B
Plaintext
// Objective-C API for talking to issue12403 Go package.
|
|
// gobind -lang=objc issue12403
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#ifndef __Issue12403_H__
|
|
#define __Issue12403_H__
|
|
|
|
@import Foundation;
|
|
#include "Universe.objc.h"
|
|
|
|
|
|
@protocol Issue12403Parsable;
|
|
@class Issue12403Parsable;
|
|
|
|
@protocol Issue12403Parsable <NSObject>
|
|
- (NSString*)fromJSON:(NSString*)jstr;
|
|
- (NSString*)toJSON:(NSError**)error;
|
|
@end
|
|
|
|
@class Issue12403Parsable;
|
|
|
|
@interface Issue12403Parsable : NSObject <goSeqRefInterface, Issue12403Parsable> {
|
|
}
|
|
@property(strong, readonly) id _ref;
|
|
|
|
- (instancetype)initWithRef:(id)ref;
|
|
- (NSString*)fromJSON:(NSString*)jstr;
|
|
- (NSString*)toJSON:(NSError**)error;
|
|
@end
|
|
|
|
#endif
|