lstg

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package lstg contains all CLI commands implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBool

func ConvertBool(b bool) string

ConvertBool strips out 'false' values for easier reading.

func RenderListings added in v1.1.0

func RenderListings(ll []Listing, p bool) string

RenderListings returns a pretty formatted listing as table.

Types

type Listing

type Listing struct {
	ID                  int    `storm:"id,increment"`
	Volume              int    `json:"volume"`
	IssueNumber         int    `json:"issue"`
	Year                int    `json:"year"`
	Season              string `json:"season"`
	PageNumber          int    `json:"page"`
	IndexedCategory     string `storm:"index" json:"category"`
	IndexedMemberNumber int    `storm:"index" json:"member"`
	MemberExtension     string `json:"alt"`
	IsInternational     bool   `json:"international"`
	IsReview            bool   `json:"review"`
	ListingText         string `json:"text"`
	IsArt               bool   `json:"art"`
	IsFlagged           bool   `json:"flag"`
}

A Listing contains relevant information for LEX listings.

type Listings

type Listings struct {
	Listings []Listing `json:"listings"`
}

A Listings hold unmarshalled listing data for import.

Jump to

Keyboard shortcuts

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