go-preact-webview

command module
v0.0.0-...-96f580b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 13 Imported by: 0

README

Live Codding : Discovering Go : webview using zserge/webview go-preact-webview

An example of React app working with go like electron js do.

Introduction

In order to construct a Desktop APP we have tested the build of an app using Golang , and React with Webview. This stack aims to have a powerfull APP with low memory and cpu consumption.

Usage

** To refresh assets.go file (when updating react files ) **

go-bindata -o assets.go js/react/... js/styles.css 

** Build **

# Linux
$ go build -o webview-example && ./webview-example

# MacOS uses app bundles for GUI apps
$ mkdir -p example.app/Contents/MacOS
$ go build -o example.app/Contents/MacOS/example
$ open example.app # Or click on the app in Finder

# Windows requires special linker flags for GUI apps.
# It's also recommended to use TDM-GCC-64 compiler for CGo.
# http://tdm-gcc.tdragon.net/download
$ go build -ldflags="-H windowsgui" -o webview-example.exe

Video Source

https://www.twitch.tv/videos/444165596

Twitch Channel

https://www.twitch.tv/calyscope

https://github.com/zserge/webview https://github.com/zserge/lorca https://preactjs.com/

Have a nice DAY Best Regards

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL