package notes type Author struct { PDS string Handle string DisplayName string AvatarURL string BannerURL string Pronouns string NoUnauth bool } func IsPublic(author *Author) bool { if author == nil { return false } return !author.NoUnauth }