Skip to content

Instantly share code, notes, and snippets.

@cranelab
Created April 1, 2020 18:44
Show Gist options
  • Save cranelab/73a6da6c77cd7bd28fa79ee90cf852b2 to your computer and use it in GitHub Desktop.
Save cranelab/73a6da6c77cd7bd28fa79ee90cf852b2 to your computer and use it in GitHub Desktop.
obfuscated FizzBuzz solution in Golang
package main
import "fmt"
func main() {
var uint = 1
:= <<
:= >>
:= []byte{
byte(<<(<<()+) + <<() + ),
byte(<<(<<(+)-) - <<(<<()+) + <<(+) + ),
byte(<<(<<()+) + ),
byte(<<(<<(+)-) - <<(+) - - ),
byte(<<(<<(+)-) - <<() - ),
byte(<<(<<(+)-) - <<() - ),
byte(<<(+) + ),
}
:= (<<(<<()+) + <<(<<()+) - <<()) +
(uint([<<()]) * ((<<(<<(+)-) - <<(<<()) + ) +
(uint([+]) * (<<(<<()+) - <<() - + (uint([]) *
( + <<(<<()) + + ( << ( + ) * uint([]))))))))
:= [][]byte{
append(append([]byte{}, [:]...), [<<():]...),
append([]byte{}, [:]...),
append(append(append([]byte{}, [:]...), [<<():<<()+]...), [:]...),
}
:= make([]byte, uint([<<()+])<<()-uint([<<()+])+uint([]))
for := range {
:= & uint([]-[]-byte())
if < {
fmt.Printf("%d%s", uint()+, [<<()+:])
} else {
fmt.Printf("%s", [-])
}
= >>() | <<(<<(<<()+)-<<())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment