Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJsonUnmarshal = errors.New("invalid json")
Functions ¶
func IsPathError ¶
IsPathError returns true if err is present, and it or its cause is an os.PathError.
func MarshalJsonFile ¶
MarshalJsonFile marshals v into path.
func MarshalJsonFileWithDirs ¶
MarshalJsonFileWithDirs creates intermediate dirs and marshals v into path.
func UnmarshalJsonFile ¶
UnmarshalJsonFile unmarshals the data at path into the pointer v.
Types ¶
type Abs ¶
type Abs = string
Abs is an absolute path. It's just an alias of string, to avoid casting.
func ResolvePath ¶
ResolvePath returns path if it is an absolute path, or the abspath joined with base otherwise. Use "" for base to use the cwd, as per filepath.Abs.
Click to show internal directories.
Click to hide internal directories.