-
Notifications
You must be signed in to change notification settings - Fork 0
/
address.go
104 lines (83 loc) · 1.84 KB
/
address.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package gofaker
import (
"github.com/zhaolion/gofaker/address"
)
// FakeAddress current fake address
func FakeAddress() *address.FakeAddress {
if currentBackend().Address == nil {
return defaultBackend().Address
}
return currentBackend().Address
}
// City city
func City() string {
return FakeAddress().City()
}
// StreetName street_name
func StreetName() string {
return FakeAddress().StreetName()
}
// StreetAddress street_address
func StreetAddress() string {
return FakeAddress().StreetAddress()
}
// SecondaryAddress secondary_address
func SecondaryAddress() string {
return FakeAddress().SecondaryAddress()
}
// BuildingNumber building_number
func BuildingNumber() string {
return FakeAddress().BuildingNumber()
}
// Community community
func Community() string {
return FakeAddress().Community()
}
// Postcode postcode
func Postcode() string {
return FakeAddress().Postcode()
}
// ZipCode zip_code
func ZipCode() string {
return FakeAddress().ZipCode()
}
// TimeZone time_zone
func TimeZone() string {
return FakeAddress().TimeZone()
}
// StreetSuffix street_suffix
func StreetSuffix() string {
return FakeAddress().StreetSuffix()
}
// CitySuffix city_suffix
func CitySuffix() string {
return FakeAddress().CitySuffix()
}
// CityPrefix city_prefix
func CityPrefix() string {
return FakeAddress().CityPrefix()
}
// State state
func State() string {
return FakeAddress().State()
}
// StateAbbr state_abbr
func StateAbbr() string {
return FakeAddress().StateAbbr()
}
// Country country
func Country() string {
return FakeAddress().Country()
}
// CountryCode country_code
func CountryCode() string {
return FakeAddress().CountryCode()
}
// CountryLongCode country_long_code
func CountryLongCode() string {
return FakeAddress().CountryLongCode()
}
// FullAddress full_address
func FullAddress() string {
return FakeAddress().FullAddress()
}