|
good jovi posted:Are you using any of the 3rd party dependency management tools? Or checking in your entire GOPATH? I don't really see how using go get doesn't satisfy people. If I recall correctly one of Go's goals is to make everything backwards compatible and it is adapted by pretty much all major packages. I'm actually really glad that there aren't such ridiculous things like the depreciation mechanics Java has that are so blatantly ignored by most of it's users.
|
# ¿ Sep 27, 2014 08:42 |
|
|
# ¿ Apr 29, 2024 07:15 |
|
Azazel posted:When you start importing a handful of 3rd party libraries and share those libraries among multiple developers/projects "go get" alone becomes very unsatisfying. See, I always thought people were more worried about not having proper versioning though this does make sense.
|
# ¿ Sep 30, 2014 23:42 |
|
Urit posted:Is there a consensus on the most viable embedded scripting language for Go? I'm writing something that I'd like to allow (friendly - as in written by internal users and stored on disk with the program) arbitrary code execution in. Lua seems to be vaguely incompatible with Go on Windows due to longjmps for error handling which causes straight up crashes, plus it's playing with CGo. Otto looks neat but it's Javascript which no one wants to write, and it's not really fast for string processing. I found a random project on Github called Agora but it hasn't been maintained for a year and it's somone's toy scripting language, though it looks pretty neat. There's go-lua Which is all native Go so no cgo BS otto V8 JS all in native Go. I've used both of them with great success. Pretty decent in terms of performance for what it is, as well. Pretty much everything else is trash/a toy language that you shouldn't expect users to learn or uses cgo e: If it matters, I prefer otto. It's much easier to interface with. NickPlowswell fucked around with this message at 08:07 on Apr 16, 2015 |
# ¿ Apr 16, 2015 06:58 |
|
I tend to use interfaces a ton when doing stuff like event passing/update methods. For example, I have some "widget" like structs I use with termbox-go The interface for them is code:
With the component example: code:
NickPlowswell fucked around with this message at 10:50 on Sep 8, 2015 |
# ¿ Sep 8, 2015 10:42 |