[go-nuts] Re: Using modules with private repos

2020-04-01 Thread Dave Mazzoni
With all the examples out there and a little experimentation, I found the solution I needed. Here's the tree from the 'top' directory: ├── dfs │ ├── dfs.go │ ├── dfs_test.go │ └── go.mod ├── first.go ├── go.mod └── ModuleDFS Here are the file contents starting from the top of the directory s

[go-nuts] Re: Using modules with private repos

2020-04-01 Thread Dave Mazzoni
I have become totally confused about using local modules. Please help -- I'll try to keep this short: I have a package (dfs) and a main package. I tried laying things out an using _ for local packages from your excellent post on github, but I still cannot get things to build correctly. I got the

Re: [go-nuts] Cross-linking cgo

2017-01-09 Thread Dave Mazzoni
This looked really nice, but I'm having problems with it: go get github.com/mitchellh/gox (no problem) go get github.com/inconshreveable/gonative # github.com/inconshreveable/gonative Projects/Golang/src/github.com/inconshreveable/gonative/gonative.go:67: cannot use "" (type string) as type bool

Re: [go-nuts] Re: Is syscall.Mmap broken? Or am I?

2016-06-14 Thread Dave Mazzoni
You're too kind. Now I don't feel like an idiot. Thanks again. On Tue, Jun 14, 2016 at 6:17 PM, Dave Cheney wrote: > It helps if you've hit the same issue before :) > > On Wed, Jun 15, 2016 at 8:14 AM, Dave Mazzoni wrote: > > Wow. You all are incredible -- your

Re: [go-nuts] Re: Is syscall.Mmap broken? Or am I?

2016-06-14 Thread Dave Mazzoni
2016 at 2:47 PM, Dave Mazzoni wrote: > > > > Thanks for the suggestions. I'm a bit confused though since Mmap returns > a > > slice of bytes. I print all the bytes as you can see, but only the first > > byte at each 32 bit boundary is correct. I don't know casti

[go-nuts] Re: Is syscall.Mmap broken? Or am I?

2016-06-14 Thread Dave Mazzoni
y, June 14, 2016 at 3:53:14 PM UTC-4, Dave Mazzoni wrote: > > Hello all - I've been having a hard time getting syscall.Mmap to produce > the "right" values. I'm using 1.6.2 and cross-compiling for the ARM/Linux. > I'm trying to read from Arm memory at its devi

[go-nuts] Is syscall.Mmap broken? Or am I?

2016-06-14 Thread Dave Mazzoni
Hello all - I've been having a hard time getting syscall.Mmap to produce the "right" values. I'm using 1.6.2 and cross-compiling for the ARM/Linux. I'm trying to read from Arm memory at its device address 0x43c0. Here's the scenario: I 'poke' values into memory using the C based arm/linux