arxiv

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 5 Imported by: 1

README

musical-spoon

arxiv topic fetch.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Topics map[string]Topic

Functions

func QuerySubmittedDateCustomTopic added in v0.0.4

func QuerySubmittedDateCustomTopic(custom string) ([]byte, error)

func QuerySubmittedDateTopic

func QuerySubmittedDateTopic(cat string) ([]byte, error)

Types

type ArxivJson

type ArxivJson struct {
	Id        string      `xml:"id"`
	Updated   string      `xml:"updated"`
	Published string      `xml:"published"`
	Title     string      `xml:"title"`
	Summary   string      `xml:"summary"`
	Authors   []*Author   `xml:"author"`
	Categorys []*Category `xml:"category"`
}

type Author

type Author struct {
	Name string `xml:"name"`
}

type Category

type Category struct {
	Term string `xml:"term,attr"`
}

type Result

type Result struct {
	Entry []*ArxivJson `xml:"entry"`
}

func (*Result) MakeResultFromCate added in v0.0.2

func (res *Result) MakeResultFromCate(cat string) error

func (*Result) MakeResultFromCustomTopic added in v0.0.4

func (res *Result) MakeResultFromCustomTopic(custom string) error

func (*Result) PrintEntrys added in v0.0.2

func (res *Result) PrintEntrys(w io.Writer)

type SubTopic

type SubTopic struct {
	Info         string
	Code         string
	SubTopicName string
}

这里维护一个Topics [code subtopics 或许写到数据库]

type Topic

type Topic struct {
	TopicName string
	SubTopics []*SubTopic
}

Jump to

Keyboard shortcuts

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