adwinsky / goprotobuf

Automatically exported from code.google.com/p/goprotobuf
Other
0 stars 0 forks source link

strings.TrimSuffix undefined when installing goprotobuf with Go version 1 #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Ubuntu 12.04 LTS with Go version 1 installed and libprotoc 2.5.0, when 
installing goprotobuf via the directions in the README the following is output:

    ubuntu@ip-1:~$ sudo go get code.google.com/p/goprotobuf/{proto,protoc-gen-go}
    # code.google.com/p/goprotobuf/protoc-gen-go/generator
    /usr/lib/go/src/pkg/code.google.com/p/goprotobuf/protoc-gen-go/generator/generator.go:1043: undefined: strings.TrimSuffix
    /usr/lib/go/src/pkg/code.google.com/p/goprotobuf/protoc-gen-go/generator/generator.go:1045: undefined: strings.TrimPrefix

I'm new to Go, and I'm having difficulty finding an older version of the Go 
docs to determine if TrimSuffix was added in a later release.  Either way, the 
goprotobuf README says version 1 should suffice.

Original issue reported on code.google.com by ellis...@gmail.com on 25 Dec 2013 at 7:51

GoogleCodeExporter commented 9 years ago
Hmm, according to this post[1] those methods were added in 1.1.  Perhaps a note 
should be added to the readme stating 1.1 is required.

[1] - https://groups.google.com/d/msg/golang-nuts/-hgpSZp0Vhw/AKjUHquAUI0J

Original comment by ellis...@gmail.com on 25 Dec 2013 at 7:59

GoogleCodeExporter commented 9 years ago
Yep, it requires 1.1. I'll fix the README.

Original comment by dsymo...@golang.org on 25 Dec 2013 at 11:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision dd4df9b5c0cf.

Original comment by dsymo...@golang.org on 26 Dec 2013 at 1:07