Nikita Boldasov
Nikita Boldasov
https://github.com/goccy/go-yaml This library preserves the order. Would it be enough to replace [invopop/yaml](https://github.com/invopop/yaml) with [goccy/go-yaml](https://github.com/goccy/go-yaml)? It has the same function `func YAMLToJSON(bytes []byte) ([]byte, error)`
Was it implemented?
Would it be enough to make `MapItem` an `interface` [here](https://github.com/goccy/go-yaml/blob/master/yaml.go#L62)? Something like that: ```go type MapItem interface { KeyToAny() interface{} ValueToAny() interface{} } ``` Then the generic `MapSlice` implementation would...
@jeevatkm thanks for the response. I thought about initializing the client once when multiple requests are sent further in the same code block. Or setting the context when the client...
Case 1 (now): ```go func DoSomething(ctx context.Context, url1, url2, url3 string) (err error) { client := resty.New() _, err = client.R().SetContext(ctx).Get(url1) if err != nil { return err } _,...
Case 2 (now): ```go func DoSomething(client *resty.Client, ctx context.Context, url1, url2, url3 string) (err error) { _, err = client.R().SetContext(ctx).Get(url1) if err != nil { return err } _, err...
Any solution?
Is it going to be merged?
@lmsurpre given that it's impossible to update the resource without a possibility of creating a new one (if the resource doesn't exist) with a PUT request?
> I vote to close this as "won't fix". Wesnoth is a game, not a bank transaction. Then paste here the admin's password of server.wesnoth.org (just a joke). Wesnoth isn't...