Closed angelabad closed 6 years ago
If you use it without error control
sparta.ParseOptions(nil)
it works well
cheers
Hi @angelabad - I can see that not working very well, especially with cgo
. Are you able to transform your build-host JSON data into option environment data that's referenced at runtime? At re:Invent it was announced that Go will be first class supported right after the new year, at which point Sparta's cgo
workaround will be eliminated. Are you able to make things work in the meantime? Cheers.
Ok, no problem. At this moment I'm using function without error control and it works well.
Cheers,
2017-12-06 6:59 GMT+01:00 Matt Weagle notifications@github.com:
Hi @angelabad https://github.com/angelabad - I can see that not working very well, especially with cgo. Are you able to transform your build-host JSON data into option environment https://godoc.org/github.com/mweagle/Sparta#LambdaFunctionOptions data that's referenced at runtime? At re:Invent it was announced that Go will be first class supported right after the new year, at which point Sparta's cgo workaround will be eliminated. Are you able to make things work in the meantime? Cheers.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mweagle/Sparta/issues/77#issuecomment-349543682, or mute the thread https://github.com/notifications/unsubscribe-auth/AACYnQ-hO0pNTnbqYxC-3MAb5hxcS6ctks5s9i1fgaJpZM4Qnrn8 .
-- Angel Abad angel@debian.org | angelabad@ubuntu.com | angelabad@gmail.com http://www.pastelero.net FPR: 4A08 9719 1621 CCF7 FBEE F752 A6D5 8816 010A 1096
Hi @mweagle, trying alternatives for my trouble with cgo, I tried environments, but if you use something like:
parseErrors := sparta.ParseOptions(nil) if nil != parseErrors { os.Exit(2) }
in your main function lambda fails always.
Cheers