Updated Readme

This commit is contained in:
Steve White 2025-01-26 00:12:22 -06:00
parent 6f7eea0373
commit 1443ef8931
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.json
*.swp

View File

@ -51,9 +51,17 @@ func main() {
## API Reference
### FetchPapers(startDate, endDate, query string, maxResults int) ([]Paper, error)
startDate: Start date in format "YYYYMMDD"
endDate: End date in format "YYYYMMDD"
query: Search query
maxResults: Maximum number of results (1-2000)
Fetches papers from arXiv API
### SaveToFile(papers []Paper, startDate, endDate, query string) error
papers: Array of Paper structs
startDate: Start date in format "YYYYMMDD"
endDate: End date in format "YYYYMMDD"
query: Search query
Saves papers to a JSON file
## Dependencies