parser

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseActorNames

func ParseActorNames(s string) (names []string)

func ParseDate

func ParseDate(s string) dt.Date

ParseDate parses a string with valid date format into Date.

func ParseDuration

func ParseDuration(s string) time.Duration

ParseDuration parses a string with valid duration format into time.Duration.

func ParseInt

func ParseInt(s string) int

ParseInt parses string to int regardless.

func ParseRuntime

func ParseRuntime(s string) int

ParseRuntime parses a string into time.Duration and converts it to minutes as integer.

func ParseScore

func ParseScore(s string) float64

ParseScore parses a string into float-based score.

func ParseTexts

func ParseTexts(n *html.Node, texts *[]string)

ParseTexts parses all plaintext from the given *html.Node.

func ParseTime

func ParseTime(s string) time.Time

ParseTime parses a string with valid time format into time.Time.

func ReplaceSpaceAll

func ReplaceSpaceAll(s string) string

ReplaceSpaceAll removes all spaces in string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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