Last active
August 29, 2020 00:04
-
-
Save geremachek/120bb387c083a3e0f0ef19a753e4ca50 to your computer and use it in GitHub Desktop.
spoiler thing for discord
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"bufio" | |
"fmt" | |
) | |
func main() { | |
scanner := bufio.NewScanner(os.Stdin) | |
for scanner.Scan() { | |
for _, ch := range scanner.Text() { | |
fmt.Printf("||%c|| ", ch) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment