committed by
GitHub
parent
9eb409b935
commit
3cfe40e76c
@@ -35,7 +35,7 @@ func NewContext() *Context {
|
||||
// Package sets the package the generated file will belong to. Required to be able to reference types in the package.
|
||||
func (c *Context) Package(path string) {
|
||||
cfg := &packages.Config{
|
||||
Mode: packages.LoadTypes,
|
||||
Mode: packages.LoadAllSyntax,
|
||||
}
|
||||
pkgs, err := packages.Load(cfg, path)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user