Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate model constructors with kallax.UUID/ULID as arguments #164

Closed
Alexendoo opened this issue May 20, 2017 · 1 comment
Closed
Labels

Comments

@Alexendoo
Copy link

Fails to generate for the following package:

package foo

import (
        "gopkg.in/src-d/go-kallax.v1"
)

//go:generate kallax gen

type Foo struct {
        kallax.Model
        ID kallax.UUID `pk:""`
}

func newFoo(id kallax.UUID) *Foo {
        return &Foo{
                ID: id,
        }
}

It attempts to generate the function as

func NewFoo(id go-kallax.v1.UUID) (record *Foo) {
        return newFoo(id)
}
@erizocosmico
Copy link
Contributor

Thanks for reporting this! Will try to get it fixed sometime this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants