}
type NotFoundError struct {
- path string
+ Path string
}
type AlreadyExistsError struct {
- path string
+ Path string
}
func (e NotFoundError) Error() string {
- return "not found: " + e.path
+ return "not found: " + e.Path
}
func (e AlreadyExistsError) Error() string {
- return "already exists: " + e.path
+ return "already exists: " + e.Path
}
// Open db connection
}
defer f.Close()
_, err = f.Write(v)
- if err != nil {
- return
- }
return
}