jaracil / goco Goto Github PK
View Code? Open in Web Editor NEWCordova bindings for GopherJS
Cordova bindings for GopherJS
So these are wrappers it seems.
So from my gopherjs I can call your wrappers that call the Cordova ApI for goelocation ( for example ).
Did you ever get the opposite working ?
Basically writing your own plugins for Cordova in golang ? I looked into it and it looked like the design of Cordova forced me to write in a different language for each platform.
It's a pity no one has written a bridge plugin for each OS, so you can code your ApI in protobuf and for example on Windows call from golang into the c# protobuf wrapper plugin and into Cordova.
Hope I am explaining myself here we'll enough.
Anyway at the moment I use webview for each OS that has bridging code so the gopherjs code can talk to the golang code via a ApI agnostic bridge using json or protobuf serialisation, but was asking most of these questions to see how easy golang with Cordova really isn
It's nice approach for getting things done
Are there any examples ?
I think that the import of github.com/pkg/errors
can be removed, since no other library uses it. All features uses the default errors
from Golang, just that library uses this custom one. It should be removed?
The pkg/errors
is only used in one line:
goco/chrome/tcpsockets/tcpsockets.go
Line 229 in 2c9c582
I think it can be replaced:
return n, err
Also, I think should be nice one tcpsockets.DialTCP()
. Also, one tcpsockets.Dial()
if cordova-plugin-chrome-apps-sockets-udp becomes available on day. It's just to match with the original net
, that allows to net.DialTCP()
. Can I submit one pull request if this function or the goco should always follows the Javascript?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.