# Functions
NewDecoder creates an Decoder for the given writer and codec.
NewEncoder creates an Encoder for the given writer and codec.
NewWatchEvent returns the serialization form of watchEvent for structured schemas.
Object converts a watch.Event into an appropriately serializable JSON object.