Re: [go-nuts] What is the main purpose of godoc?

2019-01-15 Thread Justin Israel
On Wed, Jan 16, 2019, 11:41 AM 伊藤和也 wrote: > I added some commets to the source file which belongs to "main" package > but the comments doesn't appear in godoc in html but it appears when it > belongs to other package "hello". > godoc is meant to provide automatically generated documentation abo

Re: [go-nuts] performance optimization

2019-01-15 Thread Andrei Avram
Not sure what your need is, but maybe you need time.Since instead of saving the start time and substracting it from time.Now. -- 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

[go-nuts] A modular approach, plugins, lifecycle and wasm

2019-01-15 Thread Darko Luketic
I'm currently writing a forum, I've been doing that for a few months now. You know how people have a plushi next to the they can talk to in order to develop ideas, this is my plushi. And while writing I've been thinking of all the great forum software PHP has, vbulletin, phpbb to name the most

[go-nuts] What is the main purpose of godoc?

2019-01-15 Thread 伊藤和也
I added some commets to the source file which belongs to "main" package but the comments doesn't appear in godoc in html but it appears when it belongs to other package "hello". -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fr

[go-nuts] Re: android armv5 build

2019-01-15 Thread kuznetsov . alexey
On Tuesday, January 15, 2019 at 4:47:16 PM UTC+3, kuznetso...@gmail.com wrote: > > Hello! Does anyone know how to compile go "hello world" binary for armv5 > processors? Mine setup fails all the time for armv5 and works on armv7. > > export TOOLCHAIN=$PWD/tools/ > > export NDK=~/Library/Android

Re: [go-nuts] Transferring host's go-mod-download cache into docker container

2019-01-15 Thread gregoryh
On Monday, January 14, 2019 at 4:52:37 PM UTC-8, Philip Nelson wrote: > > You can't copy from outside the context but you can volume mount it. In my > docker-compose.yml I have the following for a golang:1.11-alpine image > derivative: > > ``` > volumes: > - ${GOPATH}:/go > ``` > > Phil

Re: [go-nuts] Re: C++ 11 to Golang convertor

2019-01-15 Thread Lucio
On Tuesday, 15 January 2019 13:43:55 UTC+2, Eric Raymond wrote: > > > Have you actually looked it what it outputs? > > If not, prepare to be horrified. Maintainability is an issue. > Maybe it's a silly thought... Back in the 1950s compilers needed to be small so as to be at all executable.

[go-nuts] Re: Can I say a int64 type variable takes 8 bytes of memory and a int32 type variable takes 4 bytes of memory?

2019-01-15 Thread peterGo
"Can I say a int64 type variable takes 8 bytes of memory and a int32 type variable takes 4 bytes of memory?" You can answer your question by reading the specification. The Go Programming Language Specification https://golang.org/ref/spec Numeric types https://golang.org/ref/spec#Numeric_types

[go-nuts] Re: Can I say a int64 type variable takes 8 bytes of memory and a int32 type variable takes 4 bytes of memory?

2019-01-15 Thread nk2ge5k
It is easy to check https://play.golang.org/p/nvsccRlckby On Tuesday, 15 January 2019 13:47:06 UTC+3, 伊藤和也 wrote: > > var n1 int32 > var n2 int64 > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiv

[go-nuts] "Could not auto-detect platform"

2019-01-15 Thread liu . xuchen1
Hello, everyone, I am right now doing the cross compilation according to this discussion: https://github.com/grpc/grpc/issues/9719 and when I do 'make', I got errors like below, What's wrong with this? THX a lot. liu@liu-VirtualBox:~/Downloads/grpc$ make HAS_PKG_CONFIG=false CC=arm-none-eab

[go-nuts] android armv5 build

2019-01-15 Thread kuznetsov . alexey
Hello! Does anyone know how to compile go "hello world" binary for armv5 processors? Mine setup fails all the time for armv5 and works on armv7. export TOOLCHAIN=$PWD/tools/ export NDK=~/Library/Android/sdk/ndk-r16b/ $NDK/build/tools/make_standalone_toolchain.py --arch arm --api 14 --install-d

Re: [go-nuts] Re: C++ 11 to Golang convertor

2019-01-15 Thread Eric S. Raymond
Jason E. Aten : > I came across this C to Go project. If you could revive the LLVM C output > you could compile C++ to C with LLVM and then apply it. > > https://github.com/elliotchance/c2go > > It's rough/incomplete but it might give you something useful. Have you actually looked it what it ou

[go-nuts] Can I say a int64 type variable takes 8 bytes of memory and a int32 type variable takes 4 bytes of memory?

2019-01-15 Thread Tamás Gulácsi
Yes, except in a struct with alignment mismatch. -- 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 email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] Can I say a int64 type variable takes 8 bytes of memory and a int32 type variable takes 4 bytes of memory?

2019-01-15 Thread 伊藤和也
var n1 int32 var n2 int64 -- 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 email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.googl