Skip to content

microgen command doesn't build #29

@nicolaiskogheim

Description

@nicolaiskogheim

Hi!

I tried installing the microgen command, but it won't build.

$ go get -u github.com/devimteam/microgen/cmd/microgen
# github.com/devimteam/microgen/generator/template
generator/template/common.go:80:17: fields[0].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:81:17: fields[0].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:82:23: invalid operation: fields[0].Type.Name == "Context" (mismatched types func() string and string)
generator/template/common.go:95:29: fields[len(fields) - 1].Type.Import undefined (type types.Type has no field or method Import)
generator/template/common.go:96:35: invalid operation: fields[len(fields) - 1].Type.Name == "error" (mismatched types func() string and string)
generator/template/common.go:138:10: field.IsArray undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:142:10: field.IsPointer undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:145:10: field.IsMap undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:146:13: field.Map undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:149:10: field.Import undefined (type *types.Type is pointer to interface, not interface)
generator/template/common.go:149:10: too many errors

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions