c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

PtrTips for char * to string

Open bearx3f opened this issue 6 years ago • 1 comments

Any possible to config PtrTips or TypeTips to generate code like this

input:

int open(char* path);

expected output:

func open(path string) int {}

actual output:

func open(path []byte) int {}

bearx3f avatar Feb 22 '19 11:02 bearx3f

Hi! I guess this is similar to another issue we had with const char * to []byte: https://github.com/xlab/c-for-go/issues/5#issuecomment-249422467

But in that case I think it's not a problem to support that. Will research later, but at this point there is no such option. Sorry.

xlab avatar Feb 22 '19 14:02 xlab