utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 6 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) string

Function to wrap text with color codes

func GetToken

func GetToken() string

func GetUser

func GetUser(token string) string

func LogFollowUnfollow

func LogFollowUnfollow(username, action string) error

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

func PrintHelp added in v1.1.0

func PrintHelp()

func ValidToken added in v1.1.0

func ValidToken(token string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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