csv

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCategoryByUrl

func GetCategoryByUrl(categories []*model_public.Categories, url string) <-chan *model_public.Categories

func LoadKeyword

func LoadKeyword(fname string) ([]string, error)

func SaveCategoryCsv

func SaveCategoryCsv(base *legacy_source.BaseConfig, categories []*CategoryCsv) error

func SaveKeyword

func SaveKeyword(fname string, keywords []string) error

Types

type CategoryCsv

type CategoryCsv struct {
	Type       string                `csv:"type" json:"type"`
	ParentName string                `csv:"parent_name" json:"parent_name"`
	Name       string                `csv:"name" json:"name"`
	Url        string                `csv:"url" json:"url"`
	Status     StatusGrabCategoryCsv `csv:"status" json:"status"`
}

func LoadCategoryCsv

func LoadCategoryCsv(base *legacy_source.BaseConfig) ([]*CategoryCsv, error)

type StatusGrabCategoryCsv

type StatusGrabCategoryCsv string
const (
	STATUS_GRAB_CATEGORY_GRABBED   StatusGrabCategoryCsv = "grabbed"
	STATUS_GRAB_CATEGORY_UNGRABBED StatusGrabCategoryCsv = ""
)

Jump to

Keyboard shortcuts

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