1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-17 17:47:04 +00:00
Files
mailfull-go/catchalluser.go

25 lines
438 B
Go

package mailfull
// CatchAllUser represents a CatchAllUser.
type CatchAllUser struct {
name string
}
// NewCatchAllUser creates a new CatchAllUser instance.
func NewCatchAllUser(name string) (*CatchAllUser, error) {
if !validCatchAllUserName(name) {
return nil, ErrInvalidCatchAllUserName
}
cu := &CatchAllUser{
name: name,
}
return cu, nil
}
// Name returns name.
func (cu *CatchAllUser) Name() string {
return cu.name
}