Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YouEclipse/waka-box-go
/ functions
Functions
18 in github.com/YouEclipse/waka-box-go
⨍
Functions
18
◇
Types & classes
3
↓ 4 callers
Function
NewBox
NewBox creates a box struct with appropriate wakatime and github information and gist styling information
pkg/wakabox/box.go:50
↓ 2 callers
Function
GenerateBarChart
GenerateBarChart generates a bar chart with the given percent and size. Percent is a float64 from 0-100 representing the progress bar percentage Size
pkg/wakabox/box.go:183
↓ 2 callers
Method
GetGist
GetGist gets the gist from github.com.
pkg/wakabox/box.go:93
↓ 2 callers
Method
GetStats
GetStats gets the language stats form wakatime.com.
pkg/wakabox/box.go:75
↓ 2 callers
Method
UpdateGist
UpdateGist updates the gist.
pkg/wakabox/box.go:102
↓ 2 callers
Method
UpdateMarkdown
(ctx context.Context, title, filename string, content []byte)
pkg/wakabox/box.go:110
↓ 2 callers
Function
convertDuration
(t string)
pkg/wakabox/box.go:213
↓ 1 callers
Method
ConstructLine
ConstructLine formats a gist line from stat infomation
pkg/wakabox/box.go:168
↓ 1 callers
Method
GenerateGistLines
GenerateGistLines takes an slice of wakatime.StatItems, and generates a line for the gist.
pkg/wakabox/box.go:140
↓ 1 callers
Function
pad
(s, pad string, targetLength int)
pkg/wakabox/box.go:204
Function
TestBox_GetStats
(t *testing.T)
pkg/wakabox/box_test.go:104
Function
TestBox_Gist
(t *testing.T)
pkg/wakabox/box_test.go:126
Function
TestBox_Readme
(t *testing.T)
pkg/wakabox/box_test.go:207
Function
TestGenerateBarChart
(t *testing.T)
pkg/wakabox/box_test.go:20
Function
Test_convertTime
(t *testing.T)
pkg/wakabox/box_test.go:157
Function
init
()
pkg/wakabox/box_test.go:16
Function
init
()
cmd/box/main.go:15
Function
main
()
cmd/box/main.go:19