aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/syntax/syntaxedit.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-12-15 00:29:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-12-16 03:14:14 +0100
commita3534b576f72deef16fcd4c1e7524d9e49fbf74c (patch)
tree7ff2bd514c21b129fe44edf7ae9d9df0436be55a /ui/syntax/syntaxedit.go
parentbuild: omit build info from binary (diff)
downloadwireguard-windows-a3534b576f72deef16fcd4c1e7524d9e49fbf74c.tar.xz
wireguard-windows-a3534b576f72deef16fcd4c1e7524d9e49fbf74c.zip
global: interface{} -> any
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/syntax/syntaxedit.go')
-rw-r--r--ui/syntax/syntaxedit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/syntax/syntaxedit.go b/ui/syntax/syntaxedit.go
index 18b51436..e52f60a8 100644
--- a/ui/syntax/syntaxedit.go
+++ b/ui/syntax/syntaxedit.go
@@ -477,10 +477,10 @@ func NewSyntaxEdit(parent walk.Container) (*SyntaxEdit, error) {
se.GraphicsEffects().Add(walk.InteractionEffect)
se.GraphicsEffects().Add(walk.FocusEffect)
se.MustRegisterProperty("Text", walk.NewProperty(
- func() interface{} {
+ func() any {
return se.Text()
},
- func(v interface{}) error {
+ func(v any) error {
if s, ok := v.(string); ok {
return se.SetText(s)
}