Files
tunnel-please/session/slug/slug.go
bagas dbdf8094fa
Docker Build and Push / build-and-push-branches (push) Has been skipped
Docker Build and Push / build-and-push-tags (push) Successful in 13m4s
refactor: replace Get/Set patterns with idiomatic Go interfaces
- rename constructors to New
- remove Get/Set-style accessors
- replace string-based enums with iota-backed types
2026-01-14 16:54:10 +07:00

25 lines
262 B
Go

package slug
type Slug interface {
String() string
Set(slug string)
}
type slug struct {
slug string
}
func New() Slug {
return &slug{
slug: "",
}
}
func (s *slug) String() string {
return s.slug
}
func (s *slug) Set(slug string) {
s.slug = slug
}