Forráskód Böngészése

x/model: update doc showing option name parts

Blake Mizerany 1 éve
szülő
commit
aca112a308
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      x/model/name.go

+ 1 - 1
x/model/name.go

@@ -106,7 +106,7 @@ type Name struct {
 // ParseName parses s into a Name. The input string must be a valid string
 // ParseName parses s into a Name. The input string must be a valid string
 // representation of a model name in the form:
 // representation of a model name in the form:
 //
 //
-//	<host>/<namespace>/<model>:<tag>+<build>@<digest-type>-<digest>
+//	[host/][namespace/]<model>[:tag][+build][@<digest-type>-<digest>]
 //
 //
 // The name part is required, all others are optional. If a part is missing,
 // The name part is required, all others are optional. If a part is missing,
 // it is left empty in the returned Name. If a part is invalid, the zero Ref
 // it is left empty in the returned Name. If a part is invalid, the zero Ref