utils

package
v0.0.0-...-15eb0b2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = zapcore.DebugLevel
	LevelInfo  = zapcore.InfoLevel
	LevelWarn  = zapcore.WarnLevel
	LevelError = zapcore.ErrorLevel
	LevelFatal = zapcore.FatalLevel
)
View Source
const (
	PicInfoKey = "pic_infos"
)

Variables

This section is empty.

Functions

func DocId

func DocId(item pkg.Item) string

func Get

func Get(item pkg.Item, key string) (val interface{}, err error)

func HasVideo

func HasVideo(item pkg.Item) bool

func IsOriginal

func IsOriginal(item pkg.Item, uid string) bool

func Logger

func Logger() *logger

func NewLogger

func NewLogger(lv LogLevel) *logger

func OriginTweet

func OriginTweet(item pkg.Item) pkg.Item

func SelfDir

func SelfDir() (string, error)

func TextRaw

func TextRaw(item pkg.Item) string

Types

type LogLevel

type LogLevel = zapcore.Level

Jump to

Keyboard shortcuts

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