mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
22 lines
288 B
Go
22 lines
288 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var debug = os.Getenv("__ARGON_DEBUG__") == "true"
|
|
|
|
func debugPrintln(a ...any) {
|
|
if debug {
|
|
go func() {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
fmt.Println("debugPrintln: panic:", r)
|
|
}
|
|
}()
|
|
fmt.Println(a...)
|
|
}()
|
|
}
|
|
}
|