On Thu, Apr 18, 2019 at 6:07 PM Jamil Djadala <djad...@datamax.bg> wrote:
>
> On Thu, 18 Apr 2019 07:44:53 -0700 (PDT)
> peterGo <go.peter...@gmail.com> wrote:
>
> > Cgo translates C types into equivalent unexported Go types.
> > https://golang.org/cmd/cgo/
>
>
> But then, definition of new methods on non-local types is forbidden.
> Why it is enabled for cgo types ?

Unexported type cannot be non-local. "C" is not an import path, it
denotes a pseudo package with special treatment.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to