go-python / gopy

gopy generates a CPython extension module from a go package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No consts documentation is generated

psha- opened this issue · comments

Py doc should be generated for const definitions such as:

// This is a const
const myConst1 = 1

// This is a typed const
const myConst myType = 1

Go handles such comments and it should not be a problem for gopy to generate py doc.
However it appears that go itself can not handle docs for const defined in a common const construct:

const (
    // Doc that can't be handled by go atm
    myConst1 = 1
)