Documentation
¶
Overview ¶
Package platformdep contains platform-specific constants and helpers.
Index ¶
Constants ¶
const ( Mingw = false EnableColors = true )
Mingw reports whether the runtime looks like a Mingw/Cygwin terminal. Always false on Unix; only ever true on Windows.
const ( DirConfFilename = ".algernon" IgnoreFilename = ".ignore" HistoryFilename = ".algernon_history" )
Per-directory filenames recognized by Algernon.
const (
ExeExt = ""
)
ExeExt is the executable file extension for this platform.
const IsWindows = false
IsWindows reports whether the build target is Windows.
Variables ¶
This section is empty.
Functions ¶
func IgnoreTerminalResizeSignal ¶
func IgnoreTerminalResizeSignal()
IgnoreTerminalResizeSignal configures UNIX related platforms to ignore SIGWINCH
func SetupLogRotationSignal ¶ added in v1.17.12
func SetupLogRotationSignal(reopenLogsFunction func(), printFunction func(format string, args ...any))
SetupLogRotationSignal installs a SIGHUP handler that invokes reopenLogsFunction, so that log files can be moved aside and re-opened instead of being truncated.
func SetupSignals ¶ added in v1.17.3
SetupSignals installs SIGUSR1/SIGUSR2 handlers that invoke clearCacheFunction in a goroutine. printFunction is used to log the received signal.
Types ¶
This section is empty.