[pkg-go] Bug#827426: Can't reproduce

Eric Cooper ecc at cmu.edu
Tue Nov 22 18:09:35 UTC 2016


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 <tincho at 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)



More information about the Pkg-go-maintainers mailing list