storage

package
v0.0.0-...-dfc280d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = ".gosos-urls.json"

Variables

This section is empty.

Functions

func SaveURLs

func SaveURLs(urls *URLList, filename string) error

SaveURLs writes the provided URLList struct to a file in JSON format

Types

type URLList

type URLList struct {
	URLs []string `json:"urls"`
}

func LoadURLs

func LoadURLs(filename string) (*URLList, error)

LoadURLs reads the list of URLs from a file and returns it as a URLList struct

Jump to

Keyboard shortcuts

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