From 47065f5f2cc736ad2f92b05b159f5e3c7fa59840 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 7 Oct 2020 00:45:54 +0900 Subject: [PATCH] Remove supporting jsgo Updates #1129 --- CONTRIBUTING.md | 4 +--- examples/2048/main.go | 2 +- examples/additive/main.go | 2 +- examples/address/main.go | 2 +- examples/airship/main.go | 2 +- examples/alphablending/main.go | 2 +- examples/animation/main.go | 2 +- examples/audio/main.go | 2 +- examples/audioinfiniteloop/main.go | 2 +- examples/audiopanning/main.go | 2 +- examples/blocks/main.go | 2 +- examples/blur/main.go | 2 +- examples/camera/main.go | 2 +- examples/chipmunk/main.go | 2 +- examples/contextlost/main.go | 2 +- examples/doomfire/main.go | 2 +- examples/drag/main.go | 2 +- examples/filter/main.go | 2 +- examples/flappy/main.go | 2 +- examples/flood/main.go | 2 +- examples/font/main.go | 2 +- examples/fullscreen/main.go | 2 +- examples/gamepad/main.go | 2 +- examples/highdpi/main.go | 2 +- examples/hsv/main.go | 2 +- examples/hue/main.go | 2 +- examples/infinitescroll/main.go | 2 +- examples/keyboard/main.go | 2 +- examples/life/main.go | 2 +- examples/mandelbrot/main.go | 2 +- examples/mascot/main.go | 2 +- examples/masking/main.go | 2 +- examples/minify/main.go | 2 +- examples/moire/main.go | 2 +- examples/mosaic/main.go | 2 +- examples/noise/main.go | 2 +- examples/paint/main.go | 2 +- examples/particles/main.go | 2 +- examples/pcm/main.go | 2 +- examples/perspective/main.go | 2 +- examples/piano/main.go | 2 +- examples/platformer/main.go | 2 +- examples/polygons/main.go | 2 +- examples/raycasting/main.go | 2 +- examples/rotate/main.go | 2 +- examples/set/main.go | 2 +- examples/shader/main.go | 2 +- examples/shapes/main.go | 2 +- examples/sinewave/main.go | 2 +- examples/snake/main.go | 2 +- examples/sprites/main.go | 2 +- examples/spriteshd/main.go | 2 +- examples/squiral/main.go | 2 +- examples/text/main.go | 2 +- examples/tiles/main.go | 2 +- examples/typewriter/main.go | 2 +- examples/ui/main.go | 2 +- examples/vector/main.go | 2 +- examples/wav/main.go | 2 +- examples/wheel/main.go | 2 +- examples/windowsize/main.go | 2 +- 61 files changed, 61 insertions(+), 63 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee8252385..844355042 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,13 +36,11 @@ You don't have to update existing files' license comments. ## Adding build tags for examples ```go -// +build example jsgo +// +build example ``` `example` is to prevent from installing executions by `go get github.com/hajimehoshi/ebiten/v2/...`. -`jsgo` is to make the examples work on [jsgo.io](https://jsgo.io/). - ## Documentation See the [documents](https://ebiten.org/documents/implementation.html) about internal implementation. diff --git a/examples/2048/main.go b/examples/2048/main.go index d37ae3f12..9e4f0d71e 100644 --- a/examples/2048/main.go +++ b/examples/2048/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/additive/main.go b/examples/additive/main.go index 372dcb098..5a6c2607b 100644 --- a/examples/additive/main.go +++ b/examples/additive/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/address/main.go b/examples/address/main.go index da264c62f..446c1f00b 100644 --- a/examples/address/main.go +++ b/examples/address/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/airship/main.go b/examples/airship/main.go index 351629f25..bf57d8045 100644 --- a/examples/airship/main.go +++ b/examples/airship/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/alphablending/main.go b/examples/alphablending/main.go index 981cbb2d4..37aca3aa2 100644 --- a/examples/alphablending/main.go +++ b/examples/alphablending/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/animation/main.go b/examples/animation/main.go index acf33abb3..b17f635b1 100644 --- a/examples/animation/main.go +++ b/examples/animation/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/audio/main.go b/examples/audio/main.go index 3b59219da..d35801d18 100644 --- a/examples/audio/main.go +++ b/examples/audio/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example // This is an example to implement an audio player. // See examples/wav for a simpler example to play a sound file. diff --git a/examples/audioinfiniteloop/main.go b/examples/audioinfiniteloop/main.go index 3ae332503..e4ae4d7a7 100644 --- a/examples/audioinfiniteloop/main.go +++ b/examples/audioinfiniteloop/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/audiopanning/main.go b/examples/audiopanning/main.go index f9cd1d6e9..1ceb63d62 100644 --- a/examples/audiopanning/main.go +++ b/examples/audiopanning/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/blocks/main.go b/examples/blocks/main.go index cd4415abc..805472b47 100644 --- a/examples/blocks/main.go +++ b/examples/blocks/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/blur/main.go b/examples/blur/main.go index 161f57c96..44b4486b5 100644 --- a/examples/blur/main.go +++ b/examples/blur/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/camera/main.go b/examples/camera/main.go index 9cc5bebe2..2399c1ccc 100644 --- a/examples/camera/main.go +++ b/examples/camera/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/chipmunk/main.go b/examples/chipmunk/main.go index a25a1aadb..eceaf7693 100644 --- a/examples/chipmunk/main.go +++ b/examples/chipmunk/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/contextlost/main.go b/examples/contextlost/main.go index cd37ac942..5bb722bea 100644 --- a/examples/contextlost/main.go +++ b/examples/contextlost/main.go @@ -13,7 +13,7 @@ // limitations under the License. // +build js -// +build example jsgo +// +build example package main diff --git a/examples/doomfire/main.go b/examples/doomfire/main.go index 652495e17..81bf7a715 100644 --- a/examples/doomfire/main.go +++ b/examples/doomfire/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/drag/main.go b/examples/drag/main.go index c779ebd53..422224258 100644 --- a/examples/drag/main.go +++ b/examples/drag/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/filter/main.go b/examples/filter/main.go index 8cd540a19..03d06d321 100644 --- a/examples/filter/main.go +++ b/examples/filter/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/flappy/main.go b/examples/flappy/main.go index ebe96f7c1..6411b7c0c 100644 --- a/examples/flappy/main.go +++ b/examples/flappy/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/flood/main.go b/examples/flood/main.go index 916cf6aaf..bbf1c93c7 100644 --- a/examples/flood/main.go +++ b/examples/flood/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/font/main.go b/examples/font/main.go index 1157c396e..0ccc311b6 100644 --- a/examples/font/main.go +++ b/examples/font/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/fullscreen/main.go b/examples/fullscreen/main.go index 28e86ac6c..e4e427511 100644 --- a/examples/fullscreen/main.go +++ b/examples/fullscreen/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/gamepad/main.go b/examples/gamepad/main.go index 9b27c797f..be4097b22 100644 --- a/examples/gamepad/main.go +++ b/examples/gamepad/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/highdpi/main.go b/examples/highdpi/main.go index 49cd844c2..6f4f0f1d6 100644 --- a/examples/highdpi/main.go +++ b/examples/highdpi/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/hsv/main.go b/examples/hsv/main.go index 7c5ee3256..c9e0847a1 100644 --- a/examples/hsv/main.go +++ b/examples/hsv/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/hue/main.go b/examples/hue/main.go index ac372ddb9..b7a6e0031 100644 --- a/examples/hue/main.go +++ b/examples/hue/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/infinitescroll/main.go b/examples/infinitescroll/main.go index efce8346c..dca00200c 100644 --- a/examples/infinitescroll/main.go +++ b/examples/infinitescroll/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/keyboard/main.go b/examples/keyboard/main.go index a5c417714..2fea16458 100644 --- a/examples/keyboard/main.go +++ b/examples/keyboard/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/life/main.go b/examples/life/main.go index e969bd464..b91db03fe 100644 --- a/examples/life/main.go +++ b/examples/life/main.go @@ -21,7 +21,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// +build example jsgo +// +build example package main diff --git a/examples/mandelbrot/main.go b/examples/mandelbrot/main.go index acb3362f6..8c5dc592f 100644 --- a/examples/mandelbrot/main.go +++ b/examples/mandelbrot/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/mascot/main.go b/examples/mascot/main.go index 066def441..5e23dac01 100644 --- a/examples/mascot/main.go +++ b/examples/mascot/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example // Mascot is a desktop mascot on cross platforms. // This is inspired by mattn's gopher (https://github.com/mattn/gopher). diff --git a/examples/masking/main.go b/examples/masking/main.go index 407ee0068..ff46f216d 100644 --- a/examples/masking/main.go +++ b/examples/masking/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/minify/main.go b/examples/minify/main.go index 8f071ada7..f999fbb9b 100644 --- a/examples/minify/main.go +++ b/examples/minify/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example // This example is an experiment to minify images with various filters. // When linear filter is used, mipmap images should be used for high-quality rendering (#578). diff --git a/examples/moire/main.go b/examples/moire/main.go index f7c306ba8..827cffaa3 100644 --- a/examples/moire/main.go +++ b/examples/moire/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example // This example is just to check if Ebiten can draw fine checker pattern evenly. // If there is something wrong in the implementation, the result might include diff --git a/examples/mosaic/main.go b/examples/mosaic/main.go index 4f7c96cd1..44e619c96 100644 --- a/examples/mosaic/main.go +++ b/examples/mosaic/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/noise/main.go b/examples/noise/main.go index 0959ec66e..b64228183 100644 --- a/examples/noise/main.go +++ b/examples/noise/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/paint/main.go b/examples/paint/main.go index 3801325d3..297117bf7 100644 --- a/examples/paint/main.go +++ b/examples/paint/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/particles/main.go b/examples/particles/main.go index 4c818e844..6af027f1a 100644 --- a/examples/particles/main.go +++ b/examples/particles/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/pcm/main.go b/examples/pcm/main.go index f163ba8f7..2cb03da33 100644 --- a/examples/pcm/main.go +++ b/examples/pcm/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/perspective/main.go b/examples/perspective/main.go index ed04643c8..def2aa5a6 100644 --- a/examples/perspective/main.go +++ b/examples/perspective/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/piano/main.go b/examples/piano/main.go index 29b29927f..7a056dec0 100644 --- a/examples/piano/main.go +++ b/examples/piano/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/platformer/main.go b/examples/platformer/main.go index 8448f231e..377a96d41 100644 --- a/examples/platformer/main.go +++ b/examples/platformer/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/polygons/main.go b/examples/polygons/main.go index 5408f525c..6b0ab9e86 100644 --- a/examples/polygons/main.go +++ b/examples/polygons/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/raycasting/main.go b/examples/raycasting/main.go index ca87c26af..119fc35ae 100644 --- a/examples/raycasting/main.go +++ b/examples/raycasting/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/rotate/main.go b/examples/rotate/main.go index a097dd1e7..af9164d4e 100644 --- a/examples/rotate/main.go +++ b/examples/rotate/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/set/main.go b/examples/set/main.go index c4f00ed60..e6ba52a6c 100644 --- a/examples/set/main.go +++ b/examples/set/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/shader/main.go b/examples/shader/main.go index 40d5438cf..ffcc605d4 100644 --- a/examples/shader/main.go +++ b/examples/shader/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/shapes/main.go b/examples/shapes/main.go index 5472f7944..6e054ee8e 100644 --- a/examples/shapes/main.go +++ b/examples/shapes/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/sinewave/main.go b/examples/sinewave/main.go index 35580336d..b0a75b237 100644 --- a/examples/sinewave/main.go +++ b/examples/sinewave/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/snake/main.go b/examples/snake/main.go index 8dc823a0f..67c75a4e9 100644 --- a/examples/snake/main.go +++ b/examples/snake/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 0a08d3f30..c057ce931 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/spriteshd/main.go b/examples/spriteshd/main.go index b84aaf47c..5b4e6df40 100644 --- a/examples/spriteshd/main.go +++ b/examples/spriteshd/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/squiral/main.go b/examples/squiral/main.go index fa3a50632..c140cf175 100644 --- a/examples/squiral/main.go +++ b/examples/squiral/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example // This demo is inspired by the xscreensaver 'squirals'. diff --git a/examples/text/main.go b/examples/text/main.go index 6a07d3083..91bf5ef27 100644 --- a/examples/text/main.go +++ b/examples/text/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/tiles/main.go b/examples/tiles/main.go index d357e6cb7..73f593444 100644 --- a/examples/tiles/main.go +++ b/examples/tiles/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/typewriter/main.go b/examples/typewriter/main.go index 2db259c4a..55e7e20cb 100644 --- a/examples/typewriter/main.go +++ b/examples/typewriter/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/ui/main.go b/examples/ui/main.go index b4262adae..8e1d7b6e6 100644 --- a/examples/ui/main.go +++ b/examples/ui/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/vector/main.go b/examples/vector/main.go index 15c9fd94c..034b68bbc 100644 --- a/examples/vector/main.go +++ b/examples/vector/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/wav/main.go b/examples/wav/main.go index 5829e943b..3d4e4bbdc 100644 --- a/examples/wav/main.go +++ b/examples/wav/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/wheel/main.go b/examples/wheel/main.go index e67a8a663..ee9a168db 100644 --- a/examples/wheel/main.go +++ b/examples/wheel/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index b047fa605..2ef9ed658 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build example jsgo +// +build example package main