Browse code

compose: update the comment about MappingWithEquals

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>

Akihiro Suda authored on 2017/03/17 15:21:55
Showing 1 changed files
... ...
@@ -134,7 +134,9 @@ type StringList []string
134 134
 type StringOrNumberList []string
135 135
 
136 136
 // MappingWithEquals is a mapping type that can be converted from a list of
137
-// key=value strings
137
+// key[=value] strings.
138
+// For the key with an empty value (`key=`), the mapped value is set to a pointer to `""`.
139
+// For the key without value (`key`), the mapped value is set to nil.
138 140
 type MappingWithEquals map[string]*string
139 141
 
140 142
 // Labels is a mapping type for labels