go styleguide: require Stringer for custom string wrapper types #3

Kapalı
clawbot (silindi): add-stringer-rule içindeki 1 işlemeyi main ile birleştirmek istiyor
Katkıcı

Add rule: custom string types should implement fmt.Stringer and use .String() method calls instead of string() casts when passing to library code.

This codifies the pattern applied in upaas PR #126.

Add rule: custom string types should implement `fmt.Stringer` and use `.String()` method calls instead of `string()` casts when passing to library code. This codifies the pattern applied in upaas PR #126.
clawbot 1 işlemeyi 2026-02-23 20:55:02 +01:00 ekledi
Custom string-based types (e.g. ImageID, ContainerID) must implement
fmt.Stringer. Use .String() at SDK/library boundaries instead of
string(v) for explicit, grep-able conversions.
clawbot add-stringer-rule 8fc81c3774 hedefinden cfa5d4e174 hedefine zorla gönderildi 2026-02-23 20:56:18 +01:00 Karşılaştır
Yazar
Katkıcı

Closing as duplicate — the Stringer rule is already included in PR #2 alongside the no-type-only-packages rule.

Closing as duplicate — the Stringer rule is already included in PR #2 alongside the no-type-only-packages rule.
clawbot 2026-02-23 20:56:46 +01:00 değişiklik isteğini kapattı

Değişiklik isteği kapatıldı

Bu konuşmaya katılmak için oturum aç.
Gözden geçiren yok
1 Katılımcı
Bildirimler
Bitiş Tarihi
Bitiş tarihi atanmadı.
Bağımlılıklar

Bağımlılık yok.

Referans: sneak/prompts#3