shithub: hell

Download patch

ref: 789115407359bab2a5c4cca9c1c4d7e21305fa66
parent: 8ab8b816209c6475946ca79cdf8085dc887b789f
author: fops <billgates@cock.li>
date: Thu Oct 2 14:53:25 EDT 2025

Run golang.org/x/tools/gopls/internal/analysis/modernize

--- a/hellclient.go
+++ b/hellclient.go
@@ -45,7 +45,7 @@
 	//Contextual indexes for commands
 	ctxref       *postref
 	urlMap       map[string][]string
-	debugMap     map[string]interface{}
+	debugMap     map[string]any
 	actionBuffer []func()
 
 	//pointer to our current page item
@@ -167,7 +167,7 @@
 		postmap: homeMap,
 	}
 
-	debugMap := make(map[string]interface{})
+	debugMap := make(map[string]any)
 	urlMap := make(map[string][]string)
 	prefs := &account.Preferences
 	hc = Hellclient{rl: rl,
--- a/references.go
+++ b/references.go
@@ -19,7 +19,7 @@
 	}
 }
 
-func saveDebugRef(debugMap map[string]interface{}, obj interface{}, index string) {
+func saveDebugRef(debugMap map[string]any, obj any, index string) {
 	debugindex := "!" + index
 	(debugMap)[debugindex] = obj
 }
--- a/reflect.go
+++ b/reflect.go
@@ -5,7 +5,7 @@
 	"reflect"
 )
 
-func (hc *Hellclient) PrintObjectProperties(obj interface{}) {
+func (hc *Hellclient) PrintObjectProperties(obj any) {
 	val := reflect.ValueOf(obj)
 
 	if val.Kind() == reflect.Ptr {
--