feedsimporting

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeedsFromFile

func AddFeedsFromFile(db *gorm.DB, filename string) (err error)

AddFeedsFromFile reads a list of feed URLs from a file and creates a new Feed model for each of them, storing it into the database.

The file MUST contain a single URL on each line. Each line is stripped from spaces, and empty lines are skipped, but no further validation is performed. If a URL corresponds to an already existing Feed, it is simply ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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