We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ef7d4 commit b937fa0Copy full SHA for b937fa0
properties.go
@@ -74,6 +74,8 @@ import (
74
"runtime"
75
"sort"
76
"strings"
77
+
78
+ "github.com/arduino/go-paths-helper"
79
)
80
81
// Map is a container of properties
@@ -114,6 +116,11 @@ func Load(filepath string) (Map, error) {
114
116
return properties, nil
115
117
}
118
119
+// LoadFromPath reads a properties file and makes a Map out of it.
120
+func LoadFromPath(path *paths.Path) (Map, error) {
121
+ return Load(path.String())
122
+}
123
124
// LoadFromSlice reads a properties file from an array of string
125
// and makes a Map out of it
126
func LoadFromSlice(lines []string) (Map, error) {
0 commit comments