versia-go/pkg/lysand/publication_note.go

13 lines
185 B
Go
Raw Normal View History

2024-08-11 03:51:22 +02:00
package lysand
import "encoding/json"
type Note Publication
func (n Note) MarshalJSON() ([]byte, error) {
type note Note
n2 := note(n)
n2.Type = "Note"
return json.Marshal(n2)
}