export

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCsv

func ExportCsv(f *os.File, ch <-chan []Record) <-chan struct{}

func Filter

func Filter[A any](xs []A, f func(A) bool) []A

func Map

func Map[A any, B any](xs []A, f func(A) B) []B

func ReverseSortedTweetIds

func ReverseSortedTweetIds(j *json.Adaptive) []string

Types

type Iso8601Date

type Iso8601Date time.Time

func (*Iso8601Date) String

func (t *Iso8601Date) String() string

type Record

type Record struct {
	Id            uint64
	Username      string
	CreatedAt     Iso8601Date
	FullText      string
	RetweetCount  uint64
	FavoriteCount uint64
	ReplyCount    uint64
	QuoteCount    uint64
	Latitude      *float64
	Longitude     *float64
	Lang          string
	Source        string
}

func NewRecordsFromAdaptive

func NewRecordsFromAdaptive(j *json.Adaptive) []Record

Jump to

Keyboard shortcuts

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