first api code

This commit is contained in:
2025-08-14 14:16:05 +02:00
parent f767e697f4
commit 3221777622
6 changed files with 256 additions and 0 deletions

13
io.go Normal file
View File

@@ -0,0 +1,13 @@
package i3ipc
import "os"
func fileExists(filename string) bool {
info, err := os.Stat(filename)
if err != nil {
return false
}
return !info.IsDir()
}