Vojtech Vitek (golang.cz)

Results 212 comments of Vojtech Vitek (golang.cz)

I guess the issue is that `r.Route()` creates a new sub-router (unlike `r.Group()` or `r.Handle()`) and `Walk()` doesn't reach out to its middleware stack. https://github.com/go-chi/chi/blob/v0.9.0/mux.go#L169

https://github.com/webrpc/webrpc/pull/134#pullrequestreview-1228007720

I found this OpenAPI->Markdown generator: ``` $ webrpc-gen -schema=./test.ridl -target=openapi -out=test.gen.yaml $ docker run --rm -v "${PWD}:/app" openapitools/openapi-generator-cli:v6.2.1 generate -i /app/test.gen.yaml -g markdown -o /app/test.md ``` ![Screen Shot 2024-03-04 at...

I think we could experiment with multiple template entrypoints: - `"main"` for the code-generation - `"help"` for printing help - `"version"` for printing minimal required webrpc-gen version - `"schema"` for...

I agree with the proposal. On top of that, I think we should make `-target=golang` more stable. Perhaps, as in Go, it would also download the latest tagged version. ```...

As of https://github.com/webrpc/webrpc/pull/266, the `-target=golang` now uses the `//go:embed`ed version of the [golang](https://github.com/webrpc/gen-golang) template, pinned at specific version in go.mod file: https://github.com/webrpc/webrpc/blob/a3fb4fd91beb76e8f980b04137f416fd478fc575/go.mod#L18

OpenAPI has examples - values that can be useful for documentation or for creating stub servers. https://swagger.io/docs/specification/adding-examples/ I wonder if we could find an overlap between these two - example...

See potential implementation from Peter's branch: https://github.com/webrpc/webrpc/blob/1bbee6ae9b44fb74cdd31c9d8bd596715c0e6e8b/schema/_value.go ``` package schema import ( "fmt" "strings" ) // in the future.. see: https://github.com/webrpc/webrpc/issues/122 type Value struct { Name string `json:"name"` Type string...

> I understand openfortivpn works fine at first, then dies after 12 hours. Does it emit the above cipher-related error messages when disconnecting? Correct. Last time it ran for about...