xray

package
v0.0.0-...-acd3fab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeContent

func SanitizeContent(data string) string

Types

type Post

type Post struct {
	Name        string            `json:"name,omitempty"`
	Content     string            `json:"content,omitempty"`
	Author      string            `json:"author,omitempty"`
	AuthorPhoto string            `json:"authorPhoto,omitempty"`
	AuthorURL   string            `json:"authorUrl,omitempty"`
	Date        time.Time         `json:"date,omitempty"`
	URL         string            `json:"url,omitempty"`
	Type        microformats.Type `json:"type,omitempty"`
	Private     bool              `json:"private,omitzero"`
}

func Parse

func Parse(data map[string]any) *Post

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址