-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing lingering GopherJS support debt (#267)
* rename files to more clearly denote just JS requirement * cleanup build tags (debt from legacy GopherJS support) - fixes an issue reported by rsc / Russ Cox in #261 * denote Go 1.14+ requirement with type-checking (possible now due to removing GopherJS support) - fixes #266
- Loading branch information
Showing
6 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build go1.12,wasm,js js | ||
// +build js | ||
|
||
package vecty | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build go1.12,!wasm,!js | ||
// +build !js | ||
|
||
package vecty | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// +build !go1.14 | ||
|
||
package vecty | ||
|
||
// Typechecking will pass except one error: | ||
// | ||
// # github.com/gopherjs/vecty | ||
// ../../require_go_1_14.go:7:2: undefined: VECTY_REQUIRES_GO_1_14_PLUS | ||
// | ||
|
||
func init() { | ||
VECTY_REQUIRES_GO_1_14_PLUS = "Vecty requires Go 1.14+" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build go1.12,wasm,js js | ||
// +build js | ||
|
||
package vecty | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build go1.12,!wasm,!js | ||
// +build !js | ||
|
||
package vecty | ||
|
||
|