1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

core: replace all use of interface{} with any (#848)

This commit is contained in:
Marcus Ramberg
2025-12-01 17:04:37 +01:00
committed by GitHub
parent cfc07f4411
commit 94851a51aa
60 changed files with 336 additions and 334 deletions

View File

@@ -114,7 +114,7 @@ func (r *Response) Encode() ([]byte, error) {
continue
}
values := make([]interface{}, len(attr))
values := make([]any, len(attr))
for i, v := range attr {
values[i] = v.Value
}
@@ -143,7 +143,7 @@ func (r *Response) Encode() ([]byte, error) {
continue
}
values := make([]interface{}, len(attr))
values := make([]any, len(attr))
for i, v := range attr {
values[i] = v.Value
}
@@ -199,7 +199,7 @@ func encodeOperationAttribute(enc *AttributeEncoder, name string, attr []Attribu
return nil
}
values := make([]interface{}, len(attr))
values := make([]any, len(attr))
for i, v := range attr {
values[i] = v.Value
}