c2_hello_lorca

command
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

README

install

 $ go get github.com/zserge/lorca

它的实现原理是以命令调用的方式,如果当前系统没安装火狐浏览器,或者是不再系统默认位置安装,不过应该可以有办法把内核打包到程序里吧. lorca使用一下地址进行查找chrome可执行程序,要求chrome版本>70

os path
darwin /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
darwin /Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary
darwin /Applications/Chromium.app/Contents/MacOS/Chromium
darwin /usr/bin/google-chrome-stable
darwin /usr/bin/google-chrome
darwin /usr/bin/chromium
darwin /usr/bin/chromium-browser
windows C:/Users/$USERNAME/AppData/Local/Google/Chrome/Application/chrome.exe
windows C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
windows C:/Program Files/Google/Chrome/Application/chrome.exe
windows C:/Users/$USERNAME/AppData/Local/Chromium/Application/chrome.exe
default /usr/bin/google-chrome-stable
default /usr/bin/google-chrome
default /usr/bin/chromium
default /usr/bin/chromium-browser

Lorca

A very small library to build modern HTML5 desktop apps in Go. It uses Chrome browser as a UI layer. Unlike Electron it doesn't bundle Chrome into the app package, but rather reuses the one that is already installed. Lorca establishes a connection to the browser window and allows calling Go code from the UI and manipulating UI from Go in a seamless manner.

经过测试,应该不适用于实际使用环境.浏览器感太强,原因是直接打开一个浏览器的,具体功能受限制于浏览器的版本, 程序原理基本上是直接调用系统的命令实现的

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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