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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址