Documentation ¶
Overview ¶
GoProfileFromSeed generates user profiles based on a seed. A Profile is a structure with:
- First Name
- Last Name -Username -Email -Region -Address -seed
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateProfileImage ¶
func GenerateProfileImage(profile Profile, fileName string, filePath string, primaryColor string, secondaryColor string) string
Each profile image is a 250 * 250 pixel SVG. For more info https://github.com/Tharusha-dev/GoProfileFromSeed?tab=readme-ov-file#profile-image
Types ¶
type Profile ¶
type Profile struct { FirstName string LastName string Username string Email string Region string Address string Seed string }
func GetProfileFromSeed ¶
A seed is a 5 character string. Each character can a number or a lower case or upper case English letter. This function returns a Profile struct. For more info https://github.com/Tharusha-dev/GoProfileFromSeed?tab=readme-ov-file#how-it-works-%EF%B8%8F
Click to show internal directories.
Click to hide internal directories.