A Go version of the https://lcthw.dev/learn-code-the-hard-way/curseyou-python-rogue that makes a tiny Rogue in Go.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
195 B
15 lines
195 B
3 days ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
var dbg *log.Logger
|
||
|
|
||
|
func DebugInit() {
|
||
|
out, err := os.Create("debug.log")
|
||
|
if err != nil { log.Fatal(err) }
|
||
|
dbg = log.New(out, "", log.LstdFlags)
|
||
|
}
|