尝试了一下打印 1 到 10 ,不够恶心而且还是能看懂 https://go.dev/play/p/blIc9lco6HA
package main
type float = func() int
var nil = []float{}
func main() {
i := 10
for ; ; i-- {
if i == 0 {
goto x
}
i := i
f := new(float)
*f = func() int {
return i
}
nil = append(nil, *f)
}
x:
hh(nil)
}
func hh[T float](x []T) {
for _, e := range x {
defer println(e())
}
}
1
EscYezi 2022-12-31 02:18:40 +08:00 via iPhone
你可能需要代码混淆🤣
|
2
netabare 2022-12-31 09:22:49 +08:00 1
把变量名改为`_0`之类的?
|
3
israinbow 2022-12-31 10:36:07 +08:00 via Android
|