utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red     = "\033[31m"
	Black   = "\033[1;30m"
	Green   = "\033[1;32m"
	Magenta = "\033[1;35m"
	Reset   = "\033[0m"
)

Variables

This section is empty.

Functions

func Colorize

func Colorize(color string, text string)

Function to wrap text with color codes

func FetchRequest added in v1.3.0

func FetchRequest(url string) (*http.Response, error)

func GetNextURL added in v1.3.0

func GetNextURL(resp *http.Response) string

func GetToken

func GetToken() string

func GetUser

func GetUser(token string) string

func HandleRateLimit added in v1.3.0

func HandleRateLimit(count *int)

func LogFollowUnfollow

func LogFollowUnfollow(username, action string) error

logFollowUnfollow logs the action of following or unfollowing a user with a timestamp.

func LoginRequest added in v1.3.0

func LoginRequest(token string) (*http.Response, error)

func PrintHelp added in v1.1.0

func PrintHelp()

func ValidToken added in v1.1.0

func ValidToken(token string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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