shadowspore

Results 7 issues of shadowspore

Для инициализации структуры VK можно использовать options pattern: ```go type VkOption func(*VK) func WithHTTPClient(client *http.Client) VkOption { return func(vk *VK) { vk.client = client } } func WithVersion(version string) VkOption...

enhancement

I suggest to rework our cli a bit to improve user experience. Mainly there's a two things: 1. Make the generator print errors instead of failing instantly. We can add,...

enhancement
area: cli

I was wondering why examples tooks around 9 seconds to generate (at least, on my machine). Here's investigation results: 1. Code formatting is slow. 2. Template execution is sequential, but...

performance
area: gen

Sample schema component: ```yaml components: schemas: 12345: type: object properties: test: type: string ``` Generated type: ```go // Ref: #/components/schemas/12345 type R12345 struct { Test OptString "json:\"test\"" } ``` It...

area: gen

Initially IR was designed with the [validation logic bound to types](https://github.com/ogen-go/ogen/blob/4cb0388bfde4439ce713abc7695faf80c1a79870/gen/ir/type.go#L72). But later generic types were added. The same generic type can be re-used in many places with different validation...

area: gen

I've noticed a behavior difference between memfs and real os filesystem. Related issue: https://github.com/spf13/afero/issues/152 Related commit: https://github.com/spf13/afero/commit/ec3a3111d1e1bdff38a61e09d5a5f5e974905611 It says that returning io.ErrUnexpectedEOF is _"in line with how the OS File...