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

Unable to generate bindata with go 1.11 #19

Closed
jrasillo-boa opened this issue Apr 1, 2019 · 2 comments
Closed

Unable to generate bindata with go 1.11 #19

jrasillo-boa opened this issue Apr 1, 2019 · 2 comments

Comments

@jrasillo-boa
Copy link

Simple test:

  • Create a bintest dir directory with binary files
  • Run go-bindata -pkg bintestout -o ./bintestout/files.go ./bintest/*
  • File generated has syntax errors
    syntax error: unexpected {, expecting expression

My go version:

go version go1.11.4 linux/amd64

go-bindata version:

go-bindata --version
go-bindata 3.1.0 (Go runtime go1.11.4).
Copyright (c) 2010-2013, Jim Teeuwen.

Commit reference

jrasillo-boa referenced this issue Apr 1, 2019
@Ropes
Copy link

Ropes commented Apr 1, 2019

Confirming this problem with

go version go1.11.1 linux/amd64

and

$ go-bindata -version
go-bindata 3.1.0 (Go runtime go1.11.1).
Copyright (c) 2010-2013, Jim Teeuwen.

Seeing the same syntax error: unexpected {, expecting expression

@liweiv
Copy link
Contributor

liweiv commented Apr 2, 2019

Fixed this bug . Reinstall go-bindata @3.1.1

go get -u github.com/go-bindata/go-bindata/...

@liweiv liweiv closed this as completed Apr 2, 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

3 participants