-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.back.go
More file actions
34 lines (28 loc) · 844 Bytes
/
env.back.go
File metadata and controls
34 lines (28 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//go:build !wasm
package fmt
import (
"os"
)
// getSystemLang detects system language from environment variables
func (c *Conv) getSystemLang() lang {
// Use the centralized parser with common environment variables.
return c.langParser(
os.Getenv("LANG"),
os.Getenv("LANGUAGE"),
os.Getenv("LC_ALL"),
os.Getenv("LC_MESSAGES"),
)
}
// Println prints arguments to stdout followed by newline (like fmt.Println)
func Println(args ...any) {
os.Stdout.WriteString(GetConv().SmartArgs(BuffOut, " ", false, false, args...).String() + "\n")
}
// Printf prints formatted output to stdout (like fmt.Printf)
func Printf(format string, args ...any) {
os.Stdout.WriteString(Sprintf(format, args...))
}
// isWasm reports whether the current binary is compiled for WASM.
// Used for conditional testing.
func isWasm() bool {
return false
}