goffeetabler/controllers/peoplesampledata.go
2026-05-03 02:29:05 -05:00

111 lines
No EOL
17 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package controllers
// Person represents a single person in the sample data.
// Migrated from liquid/data/people.json.
type Person struct {
ID string
FirstName string
LastName string
FullName string
AvatarID string
Email string
City string
Country string
JobTitle string
Department string
Status string
Date string
Tags []string
Category string
}
// CustomerTableRow is the display-friendly version of a person for the customers table.
type CustomerTableRow struct {
FullName string
Email string
City string
Country string
JobTitle string
Department string
Status string
Date string
Tags []string
AvatarID string
}
// SamplePeople returns all 50 sample people from liquid/data/people.json.
func SamplePeople() []Person {
return []Person{
{ID: "1", FirstName: "Paweł", LastName: "Kuna", FullName: "Paweł Kuna", AvatarID: "000m", Email: "paweluna@howstuffworks.com", City: "Peimei", Country: "China", JobTitle: "UI Designer", Department: "Training", Status: "VIP", Date: "2025-04-07", Tags: []string{"High Volume"}, Category: "B2B"},
{ID: "2", FirstName: "Jeffie", LastName: "Lewzey", FullName: "Jeffie Lewzey", AvatarID: "052f", Email: "jlewzey1@seesaa.net", City: "Indaial", Country: "Brazil", JobTitle: "Chemical Engineer", Department: "Support", Status: "New", Date: "2024-12-12", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "3", FirstName: "Mallory", LastName: "Hulme", FullName: "Mallory Hulme", AvatarID: "002m", Email: "mhulme2@domainmarket.com", City: "Cimuncang", Country: "Indonesia", JobTitle: "Geologist IV", Department: "Support", Status: "VIP", Date: "2025-01-09", Tags: []string{"High Value", "No Refunds", "Loyal"}, Category: "B2C"},
{ID: "4", FirstName: "Dunn", LastName: "Slane", FullName: "Dunn Slane", AvatarID: "003m", Email: "dslane3@epa.gov", City: "Liutang", Country: "China", JobTitle: "Research Nurse", Department: "Sales", Status: "Regular", Date: "2022-10-01", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "5", FirstName: "Emmy", LastName: "Levet", FullName: "Emmy Levet", AvatarID: "000f", Email: "elevet4@senate.gov", City: "Kaliprak", Country: "Indonesia", JobTitle: "VP Product Management", Department: "Accounting", Status: "Regular", Date: "2025-05-18", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "6", FirstName: "Maryjo", LastName: "Lebarree", FullName: "Maryjo Lebarree", AvatarID: "001f", Email: "mlebarree5@unc.edu", City: "Hantai", Country: "China", JobTitle: "Civil Engineer", Department: "Product Management", Status: "Regular", Date: "2025-06-06", Tags: []string{"No Refunds", "Loyal"}, Category: "B2B"},
{ID: "7", FirstName: "Egan", LastName: "Poetz", FullName: "Egan Poetz", AvatarID: "004m", Email: "epoetz6@free.fr", City: "Villaguay", Country: "Argentina", JobTitle: "Research Nurse", Department: "Engineering", Status: "New", Date: "2024-08-21", Tags: []string{"No Refunds"}, Category: "B2B"},
{ID: "8", FirstName: "Kellie", LastName: "Skingley", FullName: "Kellie Skingley", AvatarID: "002f", Email: "kskingley7@columbia.edu", City: "Sidon", Country: "Lebanon", JobTitle: "Teacher", Department: "Services", Status: "VIP", Date: "2025-02-23", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "9", FirstName: "Christabel", LastName: "Charlwood", FullName: "Christabel Charlwood", AvatarID: "003f", Email: "ccharlwood8@nifty.com", City: "Recarei", Country: "Portugal", JobTitle: "Tax Accountant", Department: "Engineering", Status: "Regular", Date: "2024-09-26", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "10", FirstName: "Haskel", LastName: "Shelper", FullName: "Haskel Shelper", AvatarID: "063m", Email: "hshelper9@woothemes.com", City: "Porto Alto", Country: "Portugal", JobTitle: "Staff Scientist", Department: "Legal", Status: "Regular", Date: "2023-06-11", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "11", FirstName: "Lorry", LastName: "Mion", FullName: "Lorry Mion", AvatarID: "006m", Email: "lmiona@livejournal.com", City: "Embu", Country: "Kenya", JobTitle: "Automation Specialist IV", Department: "Accounting", Status: "Regular", Date: "2023-12-11", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "12", FirstName: "Leesa", LastName: "Beaty", FullName: "Leesa Beaty", AvatarID: "004f", Email: "lbeatyb@alibaba.com", City: "Quaraí", Country: "Brazil", JobTitle: "Editor", Department: "Services", Status: "Regular", Date: "2025-04-06", Tags: []string{"Standard"}, Category: "B2B"},
{ID: "13", FirstName: "Perren", LastName: "Keemar", FullName: "Perren Keemar", AvatarID: "007m", Email: "pkeemarc@yahoo.com", City: "Dadiya", Country: "Nigeria", JobTitle: "Analog Circuit Design manager", Department: "Services", Status: "Regular", Date: "2025-01-26", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "14", FirstName: "Sunny", LastName: "Airey", FullName: "Sunny Airey", AvatarID: "", Email: "saireyd@prlog.org", City: "Hamburg", Country: "Germany", JobTitle: "Nuclear Power Engineer", Department: "Engineering", Status: "VIP", Date: "2023-05-22", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "15", FirstName: "Geoffry", LastName: "Flaunders", FullName: "Geoffry Flaunders", AvatarID: "009m", Email: "gflaunderse@loc.gov", City: "Kavār", Country: "Iran", JobTitle: "Software Test Engineer II", Department: "Accounting", Status: "Regular", Date: "2023-11-05", Tags: []string{"No Refunds", "Loyal"}, Category: "B2B"},
{ID: "16", FirstName: "Thatcher", LastName: "Keel", FullName: "Thatcher Keel", AvatarID: "010m", Email: "tkeelf@blogger.com", City: "Nanchoc", Country: "Peru", JobTitle: "VP Sales", Department: "Business Development", Status: "Regular", Date: "2023-10-06", Tags: []string{"No Refunds"}, Category: "B2B"},
{ID: "17", FirstName: "Dyann", LastName: "Escala", FullName: "Dyann Escala", AvatarID: "005f", Email: "descalag@usatoday.com", City: "Nóvita", Country: "Colombia", JobTitle: "Mechanical Systems Engineer", Department: "Sales", Status: "Regular", Date: "2023-10-15", Tags: []string{"Standard"}, Category: "B2B"},
{ID: "18", FirstName: "Avivah", LastName: "Mugleston", FullName: "Avivah Mugleston", AvatarID: "006f", Email: "amuglestonh@intel.com", City: "Kista", Country: "Sweden", JobTitle: "Actuary", Department: "Sales", Status: "Regular", Date: "2023-03-28", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "19", FirstName: "Arlie", LastName: "Armstead", FullName: "Arlie Armstead", AvatarID: "", Email: "aarmsteadi@yellowpages.com", City: "Jacobina", Country: "Brazil", JobTitle: "VP Quality Control", Department: "Accounting", Status: "Regular", Date: "2022-11-22", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "20", FirstName: "Tessie", LastName: "Curzon", FullName: "Tessie Curzon", AvatarID: "008f", Email: "tcurzonj@hp.com", City: "Hetang", Country: "China", JobTitle: "Research Nurse", Department: "Product Management", Status: "Regular", Date: "2024-11-02", Tags: []string{"Frequent Returns"}, Category: "B2C"},
{ID: "21", FirstName: "Flossi", LastName: "Uttley", FullName: "Flossi Uttley", AvatarID: "009f", Email: "futtleyk@google.cn", City: "Gaomiaoji", Country: "China", JobTitle: "Engineer I", Department: "Research and Development", Status: "New", Date: "2025-03-08", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "22", FirstName: "Cesya", LastName: "Spritt", FullName: "Cesya Spritt", AvatarID: "010f", Email: "csprittl@mapquest.com", City: "Göteborg", Country: "Sweden", JobTitle: "Human Resources Manager", Department: "Support", Status: "Regular", Date: "2024-02-29", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "23", FirstName: "Johnnie", LastName: "Gilby", FullName: "Johnnie Gilby", AvatarID: "011m", Email: "jgilbym@loc.gov", City: "Panayagan", Country: "Indonesia", JobTitle: "Structural Engineer", Department: "Marketing", Status: "VIP", Date: "2022-11-06", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "24", FirstName: "Ban", LastName: "Rzehor", FullName: "Ban Rzehor", AvatarID: "012m", Email: "brzehorn@deliciousdays.com", City: "Denver", Country: "United States", JobTitle: "General Manager", Department: "Sales", Status: "Regular", Date: "2022-09-29", Tags: []string{"No Refunds"}, Category: "B2B"},
{ID: "25", FirstName: "Carroll", LastName: "Erat", FullName: "Carroll Erat", AvatarID: "011f", Email: "cerato@dion.ne.jp", City: "Šentilj v Slov. Goricah", Country: "Slovenia", JobTitle: "Assistant Professor", Department: "Product Management", Status: "Regular", Date: "2023-03-29", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "26", FirstName: "Marsha", LastName: "Labat", FullName: "Marsha Labat", AvatarID: "012f", Email: "mlabatp@npr.org", City: "Cabrero", Country: "Chile", JobTitle: "Research Associate", Department: "Legal", Status: "Regular", Date: "2023-04-04", Tags: []string{"No Refunds", "Loyal"}, Category: "B2B"},
{ID: "27", FirstName: "Elston", LastName: "Muffett", FullName: "Elston Muffett", AvatarID: "013m", Email: "emuffettq@marketwatch.com", City: "Terara", Country: "Indonesia", JobTitle: "Account Coordinator", Department: "Training", Status: "Regular", Date: "2024-09-20", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "28", FirstName: "Leigha", LastName: "Gorce", FullName: "Leigha Gorce", AvatarID: "013f", Email: "lgorcer@goodreads.com", City: "Barrie", Country: "Canada", JobTitle: "Geologist II", Department: "Training", Status: "Regular", Date: "2023-06-21", Tags: []string{"Standard"}, Category: "B2B"},
{ID: "29", FirstName: "Tallie", LastName: "Bettis", FullName: "Tallie Bettis", AvatarID: "", Email: "tbettiss@fastcompany.com", City: "Pojan", Country: "Albania", JobTitle: "Director of Sales", Department: "Training", Status: "New", Date: "2025-08-27", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "30", FirstName: "Merrily", LastName: "Garforth", FullName: "Merrily Garforth", AvatarID: "015f", Email: "mgarfortht@edublogs.org", City: "Tupaciguara", Country: "Brazil", JobTitle: "Structural Engineer", Department: "Business Development", Status: "Regular", Date: "2023-09-26", Tags: []string{"No Refunds", "Loyal"}, Category: "B2B"},
{ID: "31", FirstName: "Errol", LastName: "Blackley", FullName: "Errol Blackley", AvatarID: "", Email: "eblackleyu@addthis.com", City: "Poroj", Country: "Macedonia", JobTitle: "Safety Technician I", Department: "Accounting", Status: "Regular", Date: "2023-05-02", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "32", FirstName: "Ninon", LastName: "Don", FullName: "Ninon Don", AvatarID: "016f", Email: "ndonv@a8.net", City: "Baiguo", Country: "China", JobTitle: "Senior Cost Accountant", Department: "Marketing", Status: "Regular", Date: "2022-12-09", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "33", FirstName: "Delaney", LastName: "Cairney", FullName: "Delaney Cairney", AvatarID: "015m", Email: "dcairneyw@bandcamp.com", City: "Linhares", Country: "Portugal", JobTitle: "Media Manager IV", Department: "Human Resources", Status: "Regular", Date: "2024-06-27", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "34", FirstName: "Gratia", LastName: "Gooley", FullName: "Gratia Gooley", AvatarID: "017f", Email: "ggooleyx@google.es", City: "Ruma", Country: "Serbia", JobTitle: "Engineer II", Department: "Product Management", Status: "New", Date: "2024-05-30", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "35", FirstName: "Odelinda", LastName: "McCosh", FullName: "Odelinda McCosh", AvatarID: "018f", Email: "omccoshy@sun.com", City: "Chengxiang", Country: "China", JobTitle: "Tax Accountant", Department: "Research and Development", Status: "New", Date: "2024-02-05", Tags: []string{"No Refunds"}, Category: "Wholesale"},
{ID: "36", FirstName: "Wilburt", LastName: "Siegertsz", FullName: "Wilburt Siegertsz", AvatarID: "016m", Email: "wsiegertszz@google.ru", City: "Veiga", Country: "Portugal", JobTitle: "Project Manager", Department: "Marketing", Status: "Regular", Date: "2023-08-07", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "37", FirstName: "Julietta", LastName: "Coke", FullName: "Julietta Coke", AvatarID: "019f", Email: "jcoke10@nba.com", City: "Malaga", Country: "Philippines", JobTitle: "Technical Writer", Department: "Legal", Status: "Regular", Date: "2024-11-07", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "38", FirstName: "Portie", LastName: "Christou", FullName: "Portie Christou", AvatarID: "017m", Email: "pchristou11@wordpress.org", City: "Gaoping", Country: "China", JobTitle: "VP Product Management", Department: "Sales", Status: "Regular", Date: "2024-02-06", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "39", FirstName: "Emmott", LastName: "Dowsett", FullName: "Emmott Dowsett", AvatarID: "018m", Email: "edowsett12@clickbank.net", City: "Roanoke", Country: "United States", JobTitle: "Human Resources Assistant III", Department: "Accounting", Status: "Regular", Date: "2023-11-05", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "40", FirstName: "Rooney", LastName: "Cassy", FullName: "Rooney Cassy", AvatarID: "019m", Email: "rcassy13@symantec.com", City: "Mulan", Country: "China", JobTitle: "Registered Nurse", Department: "Product Management", Status: "Regular", Date: "2022-11-17", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "41", FirstName: "Haze", LastName: "Hubbert", FullName: "Haze Hubbert", AvatarID: "020m", Email: "hhubbert14@studiopress.com", City: "El Arenal", Country: "Mexico", JobTitle: "Project Manager", Department: "Engineering", Status: "Regular", Date: "2024-10-26", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
{ID: "42", FirstName: "Mata", LastName: "Codlin", FullName: "Mata Codlin", AvatarID: "021m", Email: "mcodlin15@4shared.com", City: "Mar del Plata", Country: "Argentina", JobTitle: "Speech Pathologist", Department: "Business Development", Status: "Regular", Date: "2023-12-19", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "43", FirstName: "Parker", LastName: "Oaten", FullName: "Parker Oaten", AvatarID: "022m", Email: "poaten16@deliciousdays.com", City: "Witzenhausen", Country: "Germany", JobTitle: "Accounting Assistant II", Department: "Engineering", Status: "Regular", Date: "2023-12-29", Tags: []string{"No Refunds"}, Category: "B2C"},
{ID: "44", FirstName: "Johannes", LastName: "Paternoster", FullName: "Johannes Paternoster", AvatarID: "023m", Email: "jpaternoster17@last.fm", City: "Pirallahı", Country: "Azerbaijan", JobTitle: "Assistant Manager", Department: "Engineering", Status: "Regular", Date: "2025-06-18", Tags: []string{"No Refunds"}, Category: "B2B"},
{ID: "45", FirstName: "Cary", LastName: "Baleine", FullName: "Cary Baleine", AvatarID: "024m", Email: "cbaleine18@gov.uk", City: "Pokrovka", Country: "Kyrgyzstan", JobTitle: "Automation Specialist III", Department: "Training", Status: "Regular", Date: "2025-02-17", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "46", FirstName: "Riane", LastName: "Milward", FullName: "Riane Milward", AvatarID: "020f", Email: "rmilward19@soup.io", City: "Erling", Country: "China", JobTitle: "Quality Engineer", Department: "Legal", Status: "Regular", Date: "2025-02-08", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "47", FirstName: "Reynold", LastName: "Indgs", FullName: "Reynold Indgs", AvatarID: "025m", Email: "rindgs1a@netlog.com", City: "Huayllo", Country: "Peru", JobTitle: "Payment Adjustment Coordinator", Department: "Human Resources", Status: "Regular", Date: "2024-05-20", Tags: []string{"Standard"}, Category: "B2C"},
{ID: "48", FirstName: "Parke", LastName: "Moneypenny", FullName: "Parke Moneypenny", AvatarID: "026m", Email: "pmoneypenny1b@reuters.com", City: "Karawatung", Country: "Indonesia", JobTitle: "Senior Cost Accountant", Department: "Support", Status: "Regular", Date: "2024-08-21", Tags: []string{"No Refunds", "Loyal"}, Category: "B2B"},
{ID: "49", FirstName: "Sandi", LastName: "Keys", FullName: "Sandi Keys", AvatarID: "021f", Email: "skeys1c@dailymail.co.uk", City: "Samannūd", Country: "Egypt", JobTitle: "Paralegal", Department: "Marketing", Status: "VIP", Date: "2025-01-19", Tags: []string{"High Volume", "High Value", "No Refunds", "Loyal"}, Category: "B2C"},
{ID: "50", FirstName: "Peria", LastName: "Errichiello", FullName: "Peria Errichiello", AvatarID: "022f", Email: "perrichiello1d@nbcnews.com", City: "Xukou", Country: "China", JobTitle: "Senior Editor", Department: "Legal", Status: "Regular", Date: "2022-09-04", Tags: []string{"No Refunds", "Loyal"}, Category: "B2C"},
}
}
// SampleCustomersTable returns customers table rows from the people data.
func SampleCustomersTable() []CustomerTableRow {
people := SamplePeople()
rows := make([]CustomerTableRow, 0, len(people))
for _, p := range people {
rows = append(rows, CustomerTableRow{
FullName: p.FullName,
Email: p.Email,
City: p.City,
Country: p.Country,
JobTitle: p.JobTitle,
Department: p.Department,
Status: p.Status,
Date: p.Date,
Tags: p.Tags,
AvatarID: p.AvatarID,
})
}
return rows
}