Documentation
¶
Index ¶
- Variables
- func AskInput(prompt string) string
- func AskPassword(prompt string) *string
- func Show(key string, timeCoded float32, color int)
- func ShowAccount(user apiengine.User)
- func ShowFriend(friend apiengine.Friend)
- func ShowFriends(friends []apiengine.FriendsCodingTime)
- func ShowLeaderboard(leaderboard apiengine.Leaderboard, username string)
- func ShowLeaderboards(leaderboards apiengine.LeaderboardList)
- func ShowStatistics(stats apiengine.Statistics, showTop bool, highlighted int)
- func ShowSummary(summary apiengine.SummaryResponse)
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 AskPassword ¶
AskPassword prompts user for hidden input in stdin, most used for passwords. Returns a pointer to spacetrimmed result.
func ShowAccount ¶
func ShowFriend ¶
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.
Click to show internal directories.
Click to hide internal directories.