Procházet zdrojové kódy

chore: add go:fix inline to deprecated client.New

Add a go:fix inline directive to client.New so Go 1.26 can
automatically rewrite callers to NewClient().

This keeps the deprecated wrapper in place while making migration
easier for library users.
Frédéric Guillot před 2 měsíci
rodič
revize
075127c56f
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      client/client.go

+ 2 - 0
client/client.go

@@ -22,6 +22,8 @@ type Client struct {
 // New returns a new Miniflux client.
 //
 // Deprecated: use NewClient instead.
+//
+//go:fix inline
 func New(endpoint string, credentials ...string) *Client {
 	return NewClient(endpoint, credentials...)
 }