package resources import "path" type Profile struct { Context []string `json:"@context"` Type string `json:"type"` Id string `json:"id"` Inbox string `json:"inbox"` Outbox string `json:"outbox"` Summary string `json:"summary"` Username string `json:"preferredUsername"` } type PublicKey struct { } func RenderProfile(name, domain string) *Profile { p := Profile{ Context: []string{"https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"}, Type: "Service", Inbox: path.Join("https://", domain, "actors", name, "inbox"), Outbox: path.Join("https://", domain, "actors", name, "outbox"), } return &p }