in golang/service/service.go [439:453]
func AssertAsString(a interface{}) (_result *string, _err error) {
res := ""
switch a.(type) {
case string:
tmp := a.(string)
res = tmp
case *string:
tmp := a.(*string)
res = tea.StringValue(tmp)
default:
return nil, errors.New(fmt.Sprintf("%v is not a string", a))
}
return tea.String(res), nil
}