gobyexample icon indicating copy to clipboard operation
gobyexample copied to clipboard

Go by Example

Results 18 gobyexample issues
Sort by recently updated
recently updated
newest added

Huge fan of Go By Example, I've found it more helpful than the official go docs sometimes :) I was wondering if there were any plans to add a fuzzing...

enhancement
pending-example

The [W3C Validator service](https://validator.w3.org/) reveals that all examples of the gobyexample site contain invalid html: See e.g. the [go routines example](https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Fgobyexample.com%2Fgoroutines) This PR fixes this. It also adds a `lang`...

`waitGroup` is already covered and it will be a good addition to cover [errgroup](https://pkg.go.dev/golang.org/x/sync/errgroup) examples. It is a batteries included version that provides error propagation and context cancellation along with...

pending-example

First of all, thank you very much for providing so many examples. `Go1.18` released the generic, learned the example of the generic from the website of the repository, and found...

pending-example

Would you be open to having a page on Condition Variables, i.e. `sync.Cond`? It could go right after the mutex page and I believe it'd be a great resource since...

pending-example

There's this thing that I found recently, about returning named values (variables), for example: ```go import ( "fmt" "net/url" "path" ) // Instead of func URLGetFilename(rawURL string) (string, error) {...

help-wanted
pending-example

This is a "catch-all" issue to discuss adding printout prefixes in some examples to make the code easier to correlate to output. gobyexample has a number of examples that produce...

enhancement

Hi thanks for this super site. I am going through it line by line at the moment and wondered if it would be worth making an addition to the existing...

pending-example

The `net` package has some good examples for writing socket servers, but it doesn't provide a full example for a robust echo server that reads all data from clients around...

pending-example

I think it would be helpful if there'd be another sentence about how short variable declaration with `:=` is not possible outside of a function (including `main()`). https://gobyexample.com/variables https://go.dev/tour/basics/10