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

It does not work if numbers are included in the package path #2

Open
GuiltyMorishita opened this issue Jul 27, 2019 · 0 comments
Open

Comments

@GuiltyMorishita
Copy link

GuiltyMorishita commented Jul 27, 2019

Thank you for creating a good tool for DDD.
I think it will be very helpful.
But It can not be generated well if numbers are included in package path as the following .
In my case I used numbers for versioning.

package example

import (
	"encoding"

	"github.com/hoge/fuga/v1/proto"
)

//go:generate go-genaccessor

type Person struct {
	id         string                 `getter:""`
	name       string                 `getter:"" setter:"Rename"`
	tags       []string               `getter:"" setter:""`
	text       encoding.TextMarshaler `getter:"" setter:""`
	personType proto.Type             `getter:"" setter:""`
}
// Code generated by go-genaccessor; DO NOT EDIT.

package example

import (
	"/proto"
	"encoding"

	"github.com/hoge/fuga/v"
)
@GuiltyMorishita GuiltyMorishita changed the title It does not work if the numbers are included in the package path It does not work if numbers are included in the package path Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant