I also don't see a problem in my current installation, which is now
go1.7.3, so feel free to close this.

On Mon, Nov 21, 2016 at 2:41 PM, Martín Ferrari <tin...@tincho.org> wrote:
> tags 827426 + moreinfo unreproducible
> thanks
>
> Hi,
>
> I have tried exactly what you have described (with the most current
> x/tools), and I can't reproduce the problem. And stringer leaves a
> generated file:
>
> $ cat mytype_string.go
> // Code generated by "stringer -type=MyType foo.go"; DO NOT EDIT
>
> package main
>
> import "fmt"
>
> const _MyType_name = "Alpha"
>
> var _MyType_index = [...]uint8{0, 5}
>
> func (i MyType) String() string {
>         i -= 1
>         if i < 0 || i >= MyType(len(_MyType_index)-1) {
>                 return fmt.Sprintf("MyType(%d)", i+1)
>         }
>         return _MyType_name[_MyType_index[i]:_MyType_index[i+1]]
> }
>
>
>
> --
> Martín Ferrari (Tincho)

_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to