Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codealong-dev/ride-sharing
/ GenerateRandomPlate
Function
GenerateRandomPlate
services/driver-service/utils.go:49–57 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
47
}
48
49
func
GenerateRandomPlate() string {
50
letters :=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
51
plate :=
""
52
for
i := 0; i < 3; i++ {
53
plate += string(letters[rand.Intn(len(letters))])
54
}
55
56
return
plate
57
}
Callers
1
RegisterDriver
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected