store

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is the place to record information or keep files about a project

func New

func New(projectPath string) *Store

New returns an instance of Store

func (*Store) HasFileChanged

func (s *Store) HasFileChanged(path string) (bool, error)

HasFileChanged detects whether a path has changed since the last call to RecordFileChange(). Defaults to true if path doesn't exists or RecordFileChange() was never called.

func (*Store) RecordFileChange

func (s *Store) RecordFileChange(path string) error

RecordFileChange stores the modification time of a file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL