mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 14:24:02 +03:00
Update to go 1.19
This commit is contained in:
@@ -21,14 +21,14 @@ const (
|
||||
var ProxyRequestFlagsEncryptedPrefix [8]byte
|
||||
|
||||
func (r ProxyRequestFlags) Bytes() []byte {
|
||||
converted := make([]byte, 4) // nolint: gomnd
|
||||
converted := make([]byte, 4) //nolint: gomnd
|
||||
binary.LittleEndian.PutUint32(converted, uint32(r))
|
||||
|
||||
return converted
|
||||
}
|
||||
|
||||
func (r ProxyRequestFlags) String() string {
|
||||
flags := make([]string, 0, 7) // nolint: gomnd
|
||||
flags := make([]string, 0, 7) //nolint: gomnd
|
||||
|
||||
if r&ProxyRequestFlagsHasAdTag != 0 {
|
||||
flags = append(flags, "HAS_AD_TAG")
|
||||
|
||||
Reference in New Issue
Block a user