[go-nuts] Re: still confused on how to use Go modules

2019-03-09 Thread T L
I would admit I made a mistake here, by putting some unnecessary dependencies in the go.mod file (https://github.com/go-gfx/go-skia/blob/master/go.mod) But I also think they are not fatal harmful for the library users. Am I right? On Saturday, March 9, 2019 at 4:16:04 PM UTC-4, T L wrote: > > I

[go-nuts] Re: still confused on how to use Go modules

2019-03-09 Thread T L
The full output of "go build -work -x": $ go build -work -x WORK=/tmp/go-build859561395 mkdir -p /home/user/go/pkg/mod/cache/vcs # git2 https://github.com/go-gfx/go-skia # lock /home/user/go/pkg/mod/cache/vcs/35051762d59be6e239edf386d0402f0d24ad0955066059e37c164d0c8e313bd0.lock# /home/user/go/

[go-nuts] Re: still confused on how to use Go modules

2019-03-09 Thread T L
The full output of "go build -work -x" $ go build -work -x WORK=/tmp/go-build859561395 mkdir -p /home/user/go/pkg/mod/cache/vcs # git2 https://github.com/go-gfx/go-skia # lock /home/user/go/pkg/mod/cache/vcs/35051762d59be6e239edf386d0402f0d24ad0955066059e37c164d0c8e313bd0.lock# /home/user/go/p

[go-nuts] Re: still confused on how to use Go modules

2019-03-09 Thread T L
The full output of "go build -work -x" $ go build -work -x WORK=/tmp/go-build859561395 mkdir -p /home/user/go/pkg/mod/cache/vcs # git2 https://github.com/go-gfx/go-skia # lock /home/user/go/pkg/mod/cache/vcs/35051762d59be6e239edf386d0402f0d24ad0955066059e37c164d0c8e313bd0.lock# /home/user/go/p

[go-nuts] Go playground to support none-standard modules

2019-03-09 Thread Tong Sun
I know Go playground does not support none-standard modules. Is there any online site that does support none-standard modules? For online code-running sites for any other languages, they all support none-standard modules. Go is the only one that I know which doesn't, while godoc is already sup

Re: [go-nuts] goreadme - automate Github Go projects readme files.

2019-03-09 Thread Dan Kortschak
There is also Dave's https://github.com/davecheney/godoc2md, though this is no longer maintained and intended for command line use. On Fri, 2019-03-08 at 05:34 -0800, Eyal wrote: > Hi > > I've created this Github App that automates the creation of readme > files. > It generates for Go project a r

Re: [go-nuts] goreadme - automate Github Go projects readme files.

2019-03-09 Thread Sameer Ajmani
Very nice. As a point of interest, I wrote something similar for Go packages inside Google called "writeme". It worked with multiple languages (the ones used inside Google), but had to be run manually. Your hook integration is much nicer! Have you thought about how module information might be inco

[go-nuts] still confused on how to use Go modules

2019-03-09 Thread T L
I have library package: https://github.com/go-gfx/go-skia I set its module path as "go101.org/go-skia". (see the go.mod file ) Then I created a new app project. In its "go.mod" file, I added the following line: replace go101.org/go-skia => gi

[go-nuts] Arm segmentation fault with CPU profiler

2019-03-09 Thread Diddymus
Hi all, Having an issue on Arm (Raspberry Pi 3) where it is throwing a SIGSEGV only when CPU profiling is turned on. Just wanted to sanity check my findings here... This seems possibly related to https://github.com/golang/go/issues/20417 maybe https://github.com/golang/go/issues/10534 Problem

Re: [go-nuts] nested modules in a single repo

2019-03-09 Thread Abhishek Sudhakaran
Thanks for all the quick and clear responses. Seems like I was unnecessarily complicating the workflow. The single go.mod structure worked. Go community is awesome !!! On Saturday, March 9, 2019 at 2:54:25 PM UTC+5:30, Paul Jolly wrote: > > Modules can contains multiple packages > (https://go

Re: [go-nuts] nested modules in a single repo

2019-03-09 Thread Paul Jolly
Modules can contains multiple packages (https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more). So all the packages listed in the tree above can be contained within a single module (go.mod) defined at the top most level. To take a random example of this, take a look at https://github.

Re: [go-nuts] Re: non-local return?

2019-03-09 Thread clementauger888
hi, its one way to *go*, the official one. i m happy golang, despite all, gave us tools so we can take a different path. and i want to add emphazes that i invited beginners to learn go before they import patterns from other languages. regarding the debate you open, i see no reason to re iterat

[go-nuts] Re: nested modules in a single repo

2019-03-09 Thread Abhishek Sudhakaran
what about tags ? they are required in this case also (for the bll/*) ? On Saturday, March 9, 2019 at 2:34:18 AM UTC+5:30, Tamás Gulácsi wrote: > > Use only one go.mod, at the root level of the project. -- You received this message because you are subscribed to the Google Groups "golang-nuts" g

Re: [go-nuts] nested modules in a single repo

2019-03-09 Thread Abhishek Sudhakaran
not required, the service must be able to import bll/* and possibly other sub packages. On Saturday, March 9, 2019 at 2:31:48 AM UTC+5:30, Paul Jolly wrote: > > (full disclosure, I wrote > > https://github.com/go-modules-by-example/index/blob/master/009_submodules/README.md) > > > > Quick firs