@@ -35,14 +35,14 @@ import (
35
35
36
36
// GetBoolean returns true if the map contains the specified key and the value
37
37
// equals to the string "true", in any other case returns false.
38
- func (m Map ) GetBoolean (key string ) bool {
38
+ func (m * Map ) GetBoolean (key string ) bool {
39
39
value , ok := m .GetOk (key )
40
40
return ok && value == "true"
41
41
}
42
42
43
43
// SetBoolean sets the specified key to the string "true" or "false" if the value
44
44
// is respectively true or false.
45
- func (m Map ) SetBoolean (key string , value bool ) {
45
+ func (m * Map ) SetBoolean (key string , value bool ) {
46
46
if value {
47
47
m .Set (key , "true" )
48
48
} else {
@@ -52,7 +52,7 @@ func (m Map) SetBoolean(key string, value bool) {
52
52
53
53
// GetPath returns a paths.Path object using the map value as path. The function
54
54
// returns nil if the key is not present.
55
- func (m Map ) GetPath (key string ) * paths.Path {
55
+ func (m * Map ) GetPath (key string ) * paths.Path {
56
56
value , ok := m .GetOk (key )
57
57
if ! ok {
58
58
return nil
@@ -61,7 +61,7 @@ func (m Map) GetPath(key string) *paths.Path {
61
61
}
62
62
63
63
// SetPath saves the paths.Path object in the map using the path as value of the map
64
- func (m Map ) SetPath (key string , value * paths.Path ) {
64
+ func (m * Map ) SetPath (key string , value * paths.Path ) {
65
65
if value == nil {
66
66
m .Set (key , "" )
67
67
} else {
0 commit comments