Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
58 lines
1.2 KiB
Go
58 lines
1.2 KiB
Go
package fake
|
|
|
|
// Latitude generates latitude (from -90.0 to 90.0)
|
|
func Latitude() float32 {
|
|
return r.Float32()*180 - 90
|
|
}
|
|
|
|
// LatitudeDegrees generates latitude degrees (from -90 to 90)
|
|
func LatitudeDegrees() int {
|
|
return r.Intn(180) - 90
|
|
}
|
|
|
|
// LatitudeMinutes generates latitude minutes (from 0 to 60)
|
|
func LatitudeMinutes() int {
|
|
return r.Intn(60)
|
|
}
|
|
|
|
// LatitudeSeconds generates latitude seconds (from 0 to 60)
|
|
func LatitudeSeconds() int {
|
|
return r.Intn(60)
|
|
}
|
|
|
|
// LatitudeDirection generates latitude direction (N(orth) o S(outh))
|
|
func LatitudeDirection() string {
|
|
if r.Intn(2) == 0 {
|
|
return "N"
|
|
}
|
|
return "S"
|
|
}
|
|
|
|
// Longitude generates longitude (from -180 to 180)
|
|
func Longitude() float32 {
|
|
return r.Float32()*360 - 180
|
|
}
|
|
|
|
// LongitudeDegrees generates longitude degrees (from -180 to 180)
|
|
func LongitudeDegrees() int {
|
|
return r.Intn(360) - 180
|
|
}
|
|
|
|
// LongitudeMinutes generates (from 0 to 60)
|
|
func LongitudeMinutes() int {
|
|
return r.Intn(60)
|
|
}
|
|
|
|
// LongitudeSeconds generates (from 0 to 60)
|
|
func LongitudeSeconds() int {
|
|
return r.Intn(60)
|
|
}
|
|
|
|
// LongitudeDirection generates (W(est) or E(ast))
|
|
func LongitudeDirection() string {
|
|
if r.Intn(2) == 0 {
|
|
return "W"
|
|
}
|
|
return "E"
|
|
}
|