Skip to content

Commit 428b228

Browse files
docs(storage): Fix godoc formatting (#14169)
1 parent e56381c commit 428b228

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

storage/acl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const (
3434
// They are sometimes referred to as grantees.
3535
//
3636
// It could be in the form of:
37-
// "user-<userId>", "user-<email>", "group-<groupId>", "group-<email>",
38-
// "domain-<domain>" and "project-team-<projectId>".
37+
// "user-{userId}", "user-{email}", "group-{groupId}", "group-{email}",
38+
// "domain-{domain}" and "project-team-{projectId}".
3939
//
4040
// Or one of the predefined constants: AllUsers, AllAuthenticatedUsers.
4141
type ACLEntity string

storage/post_policy_v4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type PostPolicyV4Options struct {
4040

4141
// PrivateKey is the Google service account private key. It is obtainable
4242
// from the Google Developers Console.
43-
// At https://console.developers.google.com/project/<your-project-id>/apiui/credential,
43+
// At https://console.developers.google.com/project/{your-project-id}/apiui/credential,
4444
// create a service account client ID or reuse one of your existing service account
4545
// credentials. Click on the "Generate new P12 key" to generate and download
4646
// a new private key. Once you download the P12 file, use the following command

storage/storage.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func (s bucketBoundHostname) path(bucket, object string) string {
408408
}
409409

410410
// PathStyle is the default style, and will generate a URL of the form
411-
// "<host-name>/<bucket-name>/<object-name>". By default, <host-name> is
411+
// "{host-name}/{bucket-name}/{object-name}". By default, {host-name} is
412412
// storage.googleapis.com, but setting an endpoint on the storage Client or
413413
// through STORAGE_EMULATOR_HOST overrides this. Setting Hostname on
414414
// SignedURLOptions or PostPolicyV4Options overrides everything else.
@@ -417,15 +417,15 @@ func PathStyle() URLStyle {
417417
}
418418

419419
// VirtualHostedStyle generates a URL relative to the bucket's virtual
420-
// hostname, e.g. "<bucket-name>.storage.googleapis.com/<object-name>".
420+
// hostname, e.g. "{bucket-name}.storage.googleapis.com/{object-name}".
421421
func VirtualHostedStyle() URLStyle {
422422
return virtualHostedStyle{}
423423
}
424424

425425
// BucketBoundHostname generates a URL with a custom hostname tied to a
426426
// specific GCS bucket. The desired hostname should be passed in using the
427427
// hostname argument. Generated urls will be of the form
428-
// "<bucket-bound-hostname>/<object-name>". See
428+
// "{bucket-bound-hostname}/{object-name}". See
429429
// https://cloud.google.com/storage/docs/request-endpoints#cname and
430430
// https://cloud.google.com/load-balancing/docs/https/adding-backend-buckets-to-load-balancers
431431
// for details. Note that for CNAMEs, only HTTP is supported, so Insecure must
@@ -452,7 +452,7 @@ type SignedURLOptions struct {
452452

453453
// PrivateKey is the Google service account private key. It is obtainable
454454
// from the Google Developers Console.
455-
// At https://console.developers.google.com/project/<your-project-id>/apiui/credential,
455+
// At https://console.developers.google.com/project/{your-project-id}/apiui/credential,
456456
// create a service account client ID or reuse one of your existing service account
457457
// credentials. Click on the "Generate new P12 key" to generate and download
458458
// a new private key. Once you download the P12 file, use the following command
@@ -1550,7 +1550,7 @@ type ObjectAttrs struct {
15501550

15511551
// Owner is the owner of the object. This field is read-only.
15521552
//
1553-
// If non-zero, it is in the form of "user-<userId>".
1553+
// If non-zero, it is in the form of "user-{userId}".
15541554
Owner string
15551555

15561556
// Size is the length of the object's content. This field is read-only.

0 commit comments

Comments
 (0)