Skip to content

Commit 6eb2824

Browse files
committed
Rename go version dependent sources using idiomatic naming
The Go toolchain has special support for build tags for Go versions in source filenames. https://golang.org/pkg/go/build/#hdr-Build_Constraints This makes build tags redundant, so they are removed.
1 parent 2307b45 commit 6eb2824

7 files changed

+0
-12
lines changed

benchmark_go18_test.go renamed to benchmark_go1.8_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (

connection_go18.go renamed to connection_go1.8.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (

connection_go18_test.go renamed to connection_go1.8_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (

driver_go18_test.go renamed to driver_go1.8_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (
File renamed without changes.

utils_go18.go renamed to utils_go1.8.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (

utils_go18_test.go renamed to utils_go1.8_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
77
// You can obtain one at http://mozilla.org/MPL/2.0/.
88

9-
// +build go1.8
10-
119
package mysql
1210

1311
import (

0 commit comments

Comments
 (0)