jsontypes

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsItem

type NewsItem struct {
	Id            string `json:"id"`
	Title         string `json:"title"`
	Description   string `json:"description"`
	Url           string `json:"url"`
	PublishedAt   int64  `json:"published_at,string"`
	CommentsCount int32  `json:"comments_count"`
	LikesCount    int32  `json:"likes_count"`
	SharesCount   int32  `json:"shares_count"`
}

type NewsList

type NewsList struct {
	Items []*NewsItem `json:"items"`
}

type TopicItem

type TopicItem struct {
	Id            string `json:"id"`
	Title         string `json:"title"`
	Description   string `json:"description"`
	Url           string `json:"url"`
	PublishedAt   int64  `json:"published_at,string"`
	CommentsCount int32  `json:"comments_count"`
	LikesCount    int32  `json:"likes_count"`
	SharesCount   int32  `json:"shares_count"`
}

type TopicList

type TopicList struct {
	Items []*TopicItem `json:"items"`
}

Jump to

Keyboard shortcuts

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