|
cgo dynamically links to existing C libraries. You just can't create Go libraries that can themselves be dynamically linked†. The statement remains a non sequitur, without further explanation. Though, presumably, it refers either to distribution or being able to dynamically load plugins to applications/libraries. † Ian Lance Taylor recently said that he would like to make this a priority for Go 1.4 on the dev mailing list.
|
# ¿ Mar 30, 2014 22:12 |
|
|
# ¿ Apr 29, 2024 07:12 |
|
Interestingly it panics in the go playground (http://play.golang.org/p/wH-StrUZcT) but runs correctly locally edit: well, no, misread the code. It doesn't print did something, but it doesn't panic. edit2: the code didn't copy paste into vim correctly, panics locally as well. Having a fabulous day.
|
# ¿ Apr 27, 2014 22:33 |
|
it was something simple: Master{} needs to be &Master{} as the execute method isn't defined on values of master and reflection unlike go proper doesn't automatically take the pointer. http://play.golang.org/p/SLTLkRn7dk
|
# ¿ Apr 27, 2014 22:45 |
|
If you don't give it anything more specific to encode into, that's what you're going to get. http://play.golang.org/p/Vauuun8fRP This is documented: http://golang.org/pkg/encoding/json/#Unmarshal
|
# ¿ Apr 29, 2014 04:21 |
|
etatoby posted:After all, relational algebra is what makes databases tolerable. I just wish they had a nicer syntax than SQL. (My idea of a nice syntax is APL, so I know I'm in the minority there.) You might like ISBL, then: http://posted-stuff.blogspot.com/2009/01/databases-information-system-base.html (sorry, best link I can find—it was never big)
|
# ¿ Jul 15, 2014 22:11 |
|
You're just using the wrong syntax for the composite literal, if I'm understanding the question: https://play.golang.org/p/uebkyYxuCN
|
# ¿ Apr 7, 2016 17:26 |
|
Missed the party, but you can just writecode:
|
# ¿ Jun 28, 2016 00:12 |
|
The prototype was called vgo (for versioned go) but it's baked in at tip and just called modules now. It lands with 1.11 which should be coming out shortly. You can play with it now by getting the vgo prototype, which I believe is still being kept in sync, or you can grab the latest beta: https://golang.org/dl/#go1.11beta3
|
# ¿ Aug 6, 2018 01:35 |
|
|
# ¿ Apr 29, 2024 07:12 |
|
also note that unlike most build systems the go tool does not allow any arbitrary commands to run so it's not like it can run rm -rf ~ or whatever
|
# ¿ Aug 31, 2023 21:56 |