## v0.12.0 / 2014-06-19
-* use syscall.ERROR_MORE_DATA from ztypes_windows (Go 1.3+)
-* [internal] remove cookie from Event struct (unused)
+* Go 1.3+ required on Windows (uses syscall.ERROR_MORE_DATA internally).
+* [internal] remove cookie from Event struct (unused).
+* [internal] Event struct has the same definition across every OS.
## v0.11.0 / 2014-06-12
import "fmt"
+// Event represents a single file system event.
+type Event struct {
+ Name string // Relative path to the file/directory.
+ Op Op // Platform-independent bitmask.
+}
+
// Op describes a set of file operations.
type Op uint32
keventWaitTime = 100e6
)
-type Event struct {
- Name string // Relative path to the file/directory.
- Op Op // Platform-independent mask.
-}
-
func newEvent(name string, mask uint32, create bool) *Event {
e := new(Event)
e.Name = name
sys_IN_UNMOUNT uint32 = syscall.IN_UNMOUNT
)
-type Event struct {
- Name string // Relative path to the file/directory.
- Op Op // Platform-independent mask.
-}
-
func newEvent(name string, mask uint32) *Event {
e := &Event{Name: name}
if mask&sys_IN_CREATE == sys_IN_CREATE || mask&sys_IN_MOVED_TO == sys_IN_MOVED_TO {
sys_FS_Q_OVERFLOW = 0x4000
)
-// Event is the type of the notification messages
-// received on the watcher's Events channel.
-type Event struct {
- Name string // Relative path to the file/directory.
- Op Op // Platform-independent bitmask.
-}
-
func newEvent(name string, mask uint32) *Event {
e := &Event{Name: name}
if mask&sys_FS_CREATE == sys_FS_CREATE {