csv

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 6 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 BaseConfig, categories []*CategoryCsv) error

func SaveKeyword

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

Types

type BaseConfig added in v1.1.12

type BaseConfig interface {
	Path(...string) string
}

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 BaseConfig) ([]*CategoryCsv, error)

func NewCategoryCsv added in v1.1.12

func NewCategoryCsv(parent, category *model_public.Categories) *CategoryCsv

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