Skip to content

Instantly share code, notes, and snippets.

@geremachek
Last active August 29, 2020 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geremachek/120bb387c083a3e0f0ef19a753e4ca50 to your computer and use it in GitHub Desktop.
Save geremachek/120bb387c083a3e0f0ef19a753e4ca50 to your computer and use it in GitHub Desktop.
spoiler thing for discord
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