Go package for working with the vCard 4.0 format
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

telephone.go 553B

123456789101112131415161718192021222324252627
  1. package vcard
  2. const (
  3. TelephoneTypePref = "PREF"
  4. TelephoneTypeWork = "WORK"
  5. TelephoneTypeHome = "HOME"
  6. TelephoneTypeVoice = "VOICE"
  7. TelephoneTypeFax = "FAX"
  8. TelephoneTypeMsg = "MSG"
  9. TelephoneTypeCell = "CELL"
  10. TelephoneTypePager = "PAGER"
  11. TelephoneTypeBBS = "BBS"
  12. TelephoneTypeModem = "MODEM"
  13. TelephoneTypeCar = "CAR"
  14. TelephoneTypeISDN = "ISDN"
  15. TelephoneTypeVideo = "VIDEO"
  16. )
  17. type Telephone struct {
  18. Type string
  19. Number string
  20. }
  21. func telephoneFromString(s string) (*Telephone, error) {
  22. t := Telephone{}
  23. return &t, nil
  24. }