Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
a year agoa year old
pointer.StringPtr is deprecated: Use String instead.
156		return err
157	}
158	b, err := json.Marshal(server.EncryptionRequest{
159		Stage: pointer.StringPtr(secretsencrypt.EncryptionPrepare),160		Force: cmds.ServerConfig.EncryptForce,
161	})
162	if err != nil {
pointer.StringPtr is deprecated: Use String instead.
178		return err
179	}
180	b, err := json.Marshal(server.EncryptionRequest{
181		Stage: pointer.StringPtr(secretsencrypt.EncryptionRotate),182		Force: cmds.ServerConfig.EncryptForce,
183	})
184	if err != nil {
pointer.StringPtr is deprecated: Use String instead.
201		return err
202	}
203	b, err := json.Marshal(server.EncryptionRequest{
204		Stage: pointer.StringPtr(secretsencrypt.EncryptionReencryptActive),205		Force: cmds.ServerConfig.EncryptForce,
206		Skip:  cmds.ServerConfig.EncryptSkip,
207	})
grpc.WithTimeout is deprecated: use DialContext instead of Dial and context.WithTimeout instead. Will be supported throughout 1.x.
21		return nil, err
22	}
23
24	conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithTimeout(3*time.Second), grpc.WithContextDialer(dialer), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))25	if err != nil {
26		return nil, err
27	}
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
 10	"compress/gzip"
 11	"fmt"
 12	"io"
 13	"io/ioutil" 14	"os"
 15	"path/filepath"
 16	"strings"