Documentation ¶ Index ¶ type File func NewFile(path string, minutes int) *File func (f *File) Close() error func (f *File) Destroy(id string) error func (f *File) Gc(maxLifetime int) error func (f *File) Open(string, string) error func (f *File) Read(id string) (string, error) func (f *File) Write(id string, data string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type File ¶ type File struct { // contains filtered or unexported fields } func NewFile ¶ func NewFile(path string, minutes int) *File func (*File) Close ¶ func (f *File) Close() error func (*File) Destroy ¶ func (f *File) Destroy(id string) error func (*File) Gc ¶ func (f *File) Gc(maxLifetime int) error func (*File) Open ¶ func (f *File) Open(string, string) error func (*File) Read ¶ func (f *File) Read(id string) (string, error) func (*File) Write ¶ func (f *File) Write(id string, data string) error Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.