fmt: fix prettier formatting in CODE_STYLEGUIDE_GO.md
This commit is contained in:
@@ -240,8 +240,8 @@ last_modified: 2026-02-22
|
|||||||
|
|
||||||
1. When defining custom string-based types (e.g. `type ImageID string`),
|
1. When defining custom string-based types (e.g. `type ImageID string`),
|
||||||
implement `fmt.Stringer`. Use `.String()` at SDK and library boundaries
|
implement `fmt.Stringer`. Use `.String()` at SDK and library boundaries
|
||||||
instead of `string(v)`. This makes type conversions explicit, grep-able,
|
instead of `string(v)`. This makes type conversions explicit, grep-able, and
|
||||||
and consistent across the codebase. Example:
|
consistent across the codebase. Example:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type ContainerID string
|
type ContainerID string
|
||||||
|
|||||||
Reference in New Issue
Block a user