[Go] add typemaps for std::string*

Fixes #2214
This commit is contained in:
Ian Lance Taylor 2022-03-15 20:30:40 -07:00
commit 0c0b93f8e0
3 changed files with 53 additions and 9 deletions

View file

@ -120,15 +120,6 @@ type GoRetStruct struct {
$1.assign(tmp->p, tmp->p + tmp->n);
}
%typemap(directorin) std::string * (_gostring_ temp) {
$input = &temp;
$input->p = (char *) $1->data();
$input->n = $1->size();
}
%typemap(directorargout) std::string * {
$1->assign($input->p, $input->p + $input->n);
}
%feature("director") MyClass;
%inline