package main import ( "os" "bazil.org/fuse" "bazil.org/fuse/fs" ) type MyFile struct {} func (f *MyFile) Attr(ctx context.Context, a *fuse.Attr) error { // set ctime attribute to current time a.Ctime = uint64(time.Now().Unix()) return nil } func main() { // create mount point mountpoint := "/mnt/myfs" // create file system fs := &MyFile{} // mount file system c, err := fuse.Mount(mountpoint) if err != nil { log.Fatal(err) } defer c.Close() // serve file system err = fs.Serve(fs, c) if err != nil { log.Fatal(err) } }In this example, we implement the Attr method for a file system that only contains a single file. We set the Ctime field of the Attr structure to the current time whenever the file's attributes are queried. Package library: bazil.org/fuse.