zenity/internal/zenutil/env_darwin.go

17 lines
234 B
Go
Raw Normal View History

2020-01-19 06:57:05 -05:00
package zenutil
2020-01-06 19:57:00 -05:00
2022-06-04 08:09:58 -04:00
import "strconv"
2020-01-29 11:45:40 -05:00
// These are internal.
var (
2022-05-02 10:03:48 -04:00
Separator = "\x00"
LineBreak = "\n"
2020-01-29 11:45:40 -05:00
)
2022-06-04 08:09:58 -04:00
func ParseWindowId(id string) any {
if pid, err := strconv.ParseUint(id, 0, 64); err == nil {
return int(pid)
}
return id
}