Skip to content

microgen command doesn't build #29

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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