[go-nuts] Re: the size of the files compiled in GO

2020-04-19 Thread Amnon Baron Cohen
Executable size for small programs is not a top priority in gc. So if you care about executable size (e.g. if your code runs on microcontrollers, or WASM), you may want to have a look at https://tinygo.org/ . On Sunday, 19 April 2020 21:18:29 UTC+1, serhat...@gmail.com wrote: > > It is one of the

[go-nuts] Re: How to scan input with termui?

2020-04-19 Thread 洪嘉鴻
I've seen the hits you offered. However, I couldn't see any examples with the hits. Besides, the version of termui I used is v3, which is the latest version. There isn't any functions about the input. The second is that I want to print something as normal after exit the UI. Thanks for your replyin

[go-nuts] OAuth2 token expiry logic

2020-04-19 Thread isedev
Hi, I have been looking at various packages to understand how one goes about implementing things in Go. I have been learning a great deal just by getting my head around code written by smarter devs than I'm ever likely to be ;) Whilst looking at golang/oauth2, two lines of code handling token

[go-nuts] Re: the size of the files compiled in GO

2020-04-19 Thread serhatmorkoc
It is one of the first things that people who start golang wonder, also another feature that makes this language unique. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an em

[go-nuts] Re: the size of the files compiled in GO

2020-04-19 Thread Jan Flyborg
Please take a look here: https://stackoverflow.com/questions/28576173/reason-for-huge-size-of-compiled-executable-of-go You can probably make it much smaller by just stripping the binary, and for those cases where you want it to be even smaller, you can always use UPX (but that comes with a pri