Re: [go-nuts] Unintuitive error message for external modules that lack a go.mod

2024-10-22 Thread rojiu
The version I'm using is go1.22.6. To reproduce the issue, I created a repository. This repository does not contain a go.mod, but it could still be imported. Since the modules within the same repository can be used without placing a go.mod in each of them, I mistakenly thought that an external

[go-nuts] ANN: selfy for self-signed certs. rpc25519 for blazing QUIC based RPC

2024-10-22 Thread Jason E. Aten
I wrote this RPC package recently: https://github.com/glycerine/rpc25519 `rpc25519` is a fun little RPC package that I cooked up to get comfortable with modern (Ed25519) rather than antiquated (RSA) crypto primitives. Along the way I made a very helpful tool called `selfy`. It makes generating s

Re: [go-nuts] Unintuitive error message for external modules that lack a go.mod

2024-10-22 Thread Ian Lance Taylor
On Tue, Oct 22, 2024 at 8:39 AM rojiu wrote: > > I ran into this error when trying to create a module with a single Go file > and import it from GitHub: > > ``` > predeclared any requires go1.18 or later (-lang was set to go1.16; check > go.mod) > ``` > > After some digging, I learned that since

[go-nuts] Unintuitive error message for external modules that lack a go.mod

2024-10-22 Thread rojiu
I ran into this error when trying to create a module with a single Go file and import it from GitHub: ``` predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod) ``` After some digging, I learned that since Go 1.18, external modules need a go.mod file. Without one, t

[go-nuts] Go fuzzing complex types recommendations

2024-10-22 Thread josvazg
Fell free to redirect me if this was already replied somewhere else. Go language fuzzing only supports primitive types. On the other hand, the recently archived project github.com/google/gofuzz allows to fuzz complex data types, such as structs. That project