Browse Source

compose: update the comment about MappingWithEquals

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Akihiro Suda 8 năm trước cách đây
mục cha
commit
fac9e24c7c
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      cli/compose/types/types.go

+ 3 - 1
cli/compose/types/types.go

@@ -134,7 +134,9 @@ type StringList []string
 type StringOrNumberList []string
 type StringOrNumberList []string
 
 
 // MappingWithEquals is a mapping type that can be converted from a list of
 // MappingWithEquals is a mapping type that can be converted from a list of
-// key=value strings
+// key[=value] strings.
+// For the key with an empty value (`key=`), the mapped value is set to a pointer to `""`.
+// For the key without value (`key`), the mapped value is set to nil.
 type MappingWithEquals map[string]*string
 type MappingWithEquals map[string]*string
 
 
 // Labels is a mapping type for labels
 // Labels is a mapping type for labels