Skip to content

Kitgen generated code confusion #784

@xlvdk

Description

@xlvdk

When running kitgen on the listed code, I get the following error:

/main.go:3:6: StringService redeclared in this block
       previous declaration at ./gokit.go:10:6

I am running kitgen --repo-layout flat ./main.go

package stringsvc

type StringService interface {
	Count(s string) int
	Uppercase(s string) (string, error)
}

I think this is related to #639, as I don't there is a full example of how you are meant to use kitgen.

Edit:
Removed misleading additional errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions