package messages type ToAddProfileMsg struct{} type ToPreviousStateMsg struct{} type UIErrMsg struct{ Err error } func (e UIErrMsg) Error() string { return e.Err.Error() } type ProfileValidateErrMsg struct{ Err error } func (e ProfileValidateErrMsg) Error() string { return e.Err.Error() }