zenity/internal/zenutil/env_darwin.go
2022-06-07 00:03:34 +01:00

16 lines
234 B
Go

package zenutil
import "strconv"
// These are internal.
var (
Separator = "\x00"
LineBreak = "\n"
)
func ParseWindowId(id string) any {
if pid, err := strconv.ParseUint(id, 0, 64); err == nil {
return int(pid)
}
return id
}