Hi,
I am curious to know if you've evaluated whether there is any benefit to
your tool rather than just running `go mod init projectName`?
I don't see any improvements that the `gnt` tool brings to the table other
than an unnecessary wrapper/opinionated project layout/structure on top of
`go
What is the best SAST tool to use for Golang code and can be integrated
with Goland IDE?
--
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
Structs are already comparable, but all fields must be the same:
https://go.dev/play/p/XwhSz4DEDwL
I think your solution with function 'eq' is fine. You can see the same
thing in the standard library in slices.CompactFunc and slices.EqualFunc
https://pkg.go.dev/slices#CompactFunc
I have a package which has a function `Do[T comparable](a, b []T) Result`.
I have a struct:
```go
type N struct {
x int
y int
t string
}
```
Is it possible to make `N` comparable; in particular by a field of my
choice, e.g., `t`?
Or will I have to make, say, `DoFunc(a, b []N, eq func(i, j