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

Redeclared functions in examples directory cause failures with go get .... command. #102

Merged
merged 1 commit into from Sep 17, 2014
Merged

Conversation

ghost
Copy link

@ghost ghost commented Aug 21, 2014

The following command:

~ $ go get ...

fails with:

~ $ go get ...
# github.com/ziutek/mymysql/examples
github.com/ziutek/mymysql/examples/long_data.go:25: main redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/database_sql.go:10
github.com/ziutek/mymysql/examples/parallel.go:27: main redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/long_data.go:25
github.com/ziutek/mymysql/examples/prepared_stmt.go:10: printOK redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/long_data.go:14
github.com/ziutek/mymysql/examples/prepared_stmt.go:14: checkError redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/long_data.go:18
github.com/ziutek/mymysql/examples/prepared_stmt.go:26: main redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/parallel.go:27
github.com/ziutek/mymysql/examples/reconnect.go:11: main redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/prepared_stmt.go:26
github.com/ziutek/mymysql/examples/reconnect.go:103: checkErr redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/parallel.go:21
github.com/ziutek/mymysql/examples/simple.go:10: printOK redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/prepared_stmt.go:10
github.com/ziutek/mymysql/examples/simple.go:14: checkError redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/prepared_stmt.go:14
github.com/ziutek/mymysql/examples/simple.go:22: checkedResult redeclared in this block
        previous declaration at github.com/ziutek/mymysql/examples/prepared_stmt.go:21
github.com/ziutek/mymysql/examples/simple.go:22: too many errors

ziutek pushed a commit that referenced this pull request Sep 17, 2014
Redeclared functions in examples directory cause failures with `go get ....` command.
@ziutek ziutek merged commit 261574e into ziutek:master Sep 17, 2014
@ghost ghost deleted the patch branch September 17, 2014 12:36
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

Successfully merging this pull request may close these issues.

1 participant