Skip to content

Instantly share code, notes, and snippets.

@RubaXa
Created May 2, 2020 12:41
Show Gist options
  • Select an option

  • Save RubaXa/bcd9effc1b9840ed897e2bac13ff17f7 to your computer and use it in GitHub Desktop.

Select an option

Save RubaXa/bcd9effc1b9840ed897e2bac13ff17f7 to your computer and use it in GitHub Desktop.

Revisions

  1. RubaXa created this gist May 2, 2020.
    11 changes: 11 additions & 0 deletions login.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    package types

    type Login string

    func (v Login) TypeDescription() string {
    return "Login пользователя (он же email, телефон или соц. аккаунт)"
    }

    func GenLogin() Login {
    return "[email protected]"
    }