go-python / gopy

gopy generates a CPython extension module from a go package.
BSD 3-Clause "New" or "Revised" License
2k stars 112 forks source link

No consts documentation is generated #340

Closed psha- closed 9 months ago

psha- commented 10 months ago

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
)