Re: [go-nuts] vet: Respect PATH

2024-05-22 Thread 'wagner riiffel' via golang-nuts
On 5/21/2024 12:48 PM, andrew.p...@gmail.com wrote: Please simplify both of these, so that the user can simply run: go vet -vettool=shadow Or: shadow ./... > In other words, the user should be able to invoke gofmt on a large Go > project with: > > gofmt ./... > > Same request for goimports. >

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread peterGo
cgo command https://pkg.go.dev/cmd/cgo Cgo enables the creation of Go packages that call C code. On Wednesday, May 22, 2024 at 4:41:13 PM UTC-4 Carla Pfaff wrote: > Yes, you can call C functions from Go, it's called Cgo: > https://go.dev/blog/cgo > > On Wednesday 22 May 2024 at 18:04

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread 'Carla Pfaff' via golang-nuts
Yes, you can call C functions from Go, it's called Cgo: https://go.dev/blog/cgo On Wednesday 22 May 2024 at 18:04:19 UTC+2 Pavan Kumar A R wrote: > >> Okay, it's possible to call the C program to Golang. Because I also have >> the C platform dlls and the C platform dlls we using in the cross

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread Kenneth Miller
I changed the terminal and then it worked. On Wednesday, May 22, 2024 at 10:39:05 AM UTC-6 Brian Candler wrote: > * Start in an empty directory > * Run "go mod init example" > * Create your main.go with that import statement in it > * Run: > > go mod tidy > go run . > > On Wednesday 22 May 2024 a

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread 'Brian Candler' via golang-nuts
* Start in an empty directory * Run "go mod init example" * Create your main.go with that import statement in it * Run: go mod tidy go run . On Wednesday 22 May 2024 at 16:26:54 UTC+1 Kenneth Miller wrote: > I tried that, same error > > On Wednesday, May 22, 2024 at 9:12:58 AM UTC-6 Brian Candle

Re: [go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread Pavan Kumar A R
> > Okay, it's possible to call the C program to Golang. Because I also have > the C platform dlls and the C platform dlls we using in the cross platform > mono and in the mono internally call the.net dlls function , can I use > the C program dlls in Golang? > -- You received this message becau

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread Kenneth Miller
I tried that, same error On Wednesday, May 22, 2024 at 9:12:58 AM UTC-6 Brian Candler wrote: > It's because the name of the module is "github.com/aclements/go-z3/z3", > not "z3" > > Only packages in the standard library have short names, like "fmt", > "strings" etc. > > On Wednesday 22 May 2024

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread 'Brian Candler' via golang-nuts
It's because the name of the module is "github.com/aclements/go-z3/z3", not "z3" Only packages in the standard library have short names, like "fmt", "strings" etc. On Wednesday 22 May 2024 at 15:46:30 UTC+1 robert engels wrote: > If it is your own code, you have to use > > import “github.com/a

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread robert engels
If it is your own code, you have to use import “github.com/aclements/go-z3/z3 ” or you need a special go.mod file. > On May 22, 2024, at 9:38 AM, robert engels wrote: > > What are you trying to run? z3 is a library. > >> On May 22, 2024, at 9:29 AM, Kenne

Re: [go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread robert engels
What are you trying to run? z3 is a library. > On May 22, 2024, at 9:29 AM, Kenneth Miller > wrote: > > I did go get -u github.com/aclements/go-z3/z3 > > but when I go run . I get > > main.go:5:2: package z3 is not in std > > the offending line is > > import "z3" > > can someone help me p

[go-nuts] Errors trying to use external pkg z3

2024-05-22 Thread Kenneth Miller
I did go get -u github.com/aclements/go-z3/z3 but when I go run . I get main.go:5:2: package z3 is not in std the offending line is import "z3" can someone help me please? I'm sure this has been asked before but I couldn't find it -- You received this message because you are subscribed to

[go-nuts] Re: Call the .net dlls into the golang

2024-05-22 Thread 'Carla Pfaff' via golang-nuts
You can't call .NET functions directly from Go. Go programs and .NET have two completely different runtimes. You would need some form of inter-process communication (IPC). On Wednesday 22 May 2024 at 14:31:04 UTC+2 Pavan Kumar A R wrote: > Hello , > > I build the.net dlls in the target framewor

[go-nuts] Call the .net dlls into the golang

2024-05-22 Thread Pavan Kumar A R
Hello , I build the.net dlls in the target framework, which is.net-framework 2.0, and inside the.net dlls are some functions. I want to call this function in Golang. How can I call the.net function in Golang? Please help out here. -- You received this message because you are subscribed to

[go-nuts] Re: Discover go-size-analyzer: Streamline Your Go Binary Insights

2024-05-22 Thread Peter Galbavy
Another thumbs up! Thanks On Tuesday 21 May 2024 at 16:16:54 UTC+1 Zxilly Chou wrote: > Hello go-nuts, > > I'm excited to share a new tool that has landed in our Go ecosystem: > go-size-analyzer. This utility is designed to give you a clear picture of > the size of your compiled Go binaries, wi