Code Monkey home page Code Monkey logo

gooey's Introduction

Gooey

Gooey is a template project for creating a single-file WebKit application that runs go compiled to WASM.

Use build tags // +build js,wasm to identify the code you want compiled and run on the WebKit. I'm guessing most of your code is going to use those tags. The magefile builds the js,wasm target first, and sticks the resulting main.wasm binary in ./www. Afterward, ./www/* is packaged with vfsgen to create wwwData.go. Finally, native targets are executed and you end up with something that looks like a native application but is built on HTML/WASM. You can distribute the resulting binary, or serve the files in ./www directly over a normal web server.

Setup

Install Mage:

cd ~
git clone https://github.com/magefile/mage
cd mage
go run bootstrap.go

Build with mage -v build. If you get Package gtk+-3.0 was not found in the pkg-config search path on Linux, then run sudo apt-get install libwebkit2gtk-4.0-dev.

gooey's People

Contributors

erinpentecost avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.