MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / GetRandomAvatar

Function GetRandomAvatar

shared/util/util.go:6–8  ·  view source on GitHub ↗

GetRandomAvatar returns a random avatar URL from the randomuser.me API

(index int)

Source from the content-addressed store, hash-verified

4
5// GetRandomAvatar returns a random avatar URL from the randomuser.me API
6func GetRandomAvatar(index int) string {
7 return fmt.Sprintf("https://randomuser.me/api/portraits/lego/%d.jpg", index)
8}

Callers 1

RegisterDriverMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected