datahelper

package
v0.0.0-...-70adc3e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dates = struct {
	PastWeek  time.Time
	PastMonth time.Time
}{
	PastWeek:  time.Now().AddDate(0, 0, -7),
	PastMonth: time.Now().AddDate(0, -1, 0),
}
View Source
var TopMaximum = 5

TopMaximum

Functions

func AskInput

func AskInput(prompt string) string

AskInput prompts user for input in stdin. result is trimmed.

func AskPassword

func AskPassword(prompt string) *string

AskPassword prompts user for hidden input in stdin, most used for passwords. Returns a pointer to spacetrimmed result.

func Show

func Show(key string, timeCoded float32, color int)

func ShowAccount

func ShowAccount(user apiengine.User)

func ShowFriend

func ShowFriend(friend apiengine.Friend)

func ShowFriends

func ShowFriends(friends []apiengine.FriendsCodingTime)

func ShowLeaderboard

func ShowLeaderboard(leaderboard apiengine.Leaderboard, username string)

func ShowLeaderboards

func ShowLeaderboards(leaderboards apiengine.LeaderboardList)

func ShowStatistics

func ShowStatistics(stats apiengine.Statistics, showTop bool, highlighted int)

func ShowSummary

func ShowSummary(summary apiengine.SummaryResponse)

Types

This section is empty.

Jump to

Keyboard shortcuts

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