Laurent Demailly
Laurent Demailly
Context: https://go.dev/tour/basics/14 It seems this is the first page where comments show up, and unless I'm mistaken it's not explained that // is a comment
Just doing a wasip1.Listen socket and getting link errors - any way to skip the dial stuff that I don't need on a listen? ``` # github.com/stealthrocket/net/wasip1 ../../../../go/pkg/mod/github.com/stealthrocket/[email protected]/wasip1/dial_wasip1.go:32:22: undefined: net.Resolver...
Comes indirectly from the philosophy on https://github.com/go-standard/project-layout#main ie if something isn't necessary, don't have it / keep it simple (I'd also drop go.uber.org/automaxprocs but the reasoning for that is a...
Otherwise you need to either artificially make a map[string]any from the json or duplicate ```go if bucketID == "" { bucketID = strings.SplitN(urlStr, "?", 2)[0] } return s.RequestWithLockedBucket(method, urlStr, contentType,...
```go package main import ( "fmt" "time" ) func main() { go func() { time.Sleep(1 * time.Second) fmt.Println("from goroutine") }() fmt.Print("prompt>") var x string fmt.Scanln(&x) fmt.Printf("Read %q\n", x) } ```...
Trying to use x/term on macOS for instance: ld.lld: error: undefined symbol: _golang.org/x/sys/unix.syscall_syscall
This is a slighly modified version of https://github.com/tinygo-org/tinygo/issues/1140#issuecomment-1697415864 credit to @evilnoxx and @FrankReh Fixes #1140 Note that... it's not set so noop mostly, you can see on https://grol.io where it's...
Using https://pkg.go.dev/maps#Clone (present since go 1.21) macOS: ld.lld: error: undefined symbol: _maps.clone wasm: wasm-ld: error: undefined symbol: maps.clone
```go package main import ( "math" "reflect" "runtime" ) func main() { fn := math.Cos // for instance str := runtime.FuncForPC(reflect.ValueOf(fn).Pointer()).Name() // -> "math.Cos" print(str) } ``` full go ->`"math.Cos"`...
```go type deepEqualInterface interface { Foo() } type deepEqualConcrete struct { int } func (deepEqualConcrete) Foo() {} var ( deepEqualConcrete1 = deepEqualConcrete{1} deepEqualConcrete2 = deepEqualConcrete{2} ) ... // should be...