MCPcopy Create free account

hub / github.com/YouEclipse/waka-box-go / functions

Functions18 in github.com/YouEclipse/waka-box-go

↓ 4 callersFunctionNewBox
NewBox creates a box struct with appropriate wakatime and github information and gist styling information
pkg/wakabox/box.go:50
↓ 2 callersFunctionGenerateBarChart
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 callersMethodGetGist
GetGist gets the gist from github.com.
pkg/wakabox/box.go:93
↓ 2 callersMethodGetStats
GetStats gets the language stats form wakatime.com.
pkg/wakabox/box.go:75
↓ 2 callersMethodUpdateGist
UpdateGist updates the gist.
pkg/wakabox/box.go:102
↓ 2 callersMethodUpdateMarkdown
(ctx context.Context, title, filename string, content []byte)
pkg/wakabox/box.go:110
↓ 2 callersFunctionconvertDuration
(t string)
pkg/wakabox/box.go:213
↓ 1 callersMethodConstructLine
ConstructLine formats a gist line from stat infomation
pkg/wakabox/box.go:168
↓ 1 callersMethodGenerateGistLines
GenerateGistLines takes an slice of wakatime.StatItems, and generates a line for the gist.
pkg/wakabox/box.go:140
↓ 1 callersFunctionpad
(s, pad string, targetLength int)
pkg/wakabox/box.go:204
FunctionTestBox_GetStats
(t *testing.T)
pkg/wakabox/box_test.go:104
FunctionTestBox_Gist
(t *testing.T)
pkg/wakabox/box_test.go:126
FunctionTestBox_Readme
(t *testing.T)
pkg/wakabox/box_test.go:207
FunctionTestGenerateBarChart
(t *testing.T)
pkg/wakabox/box_test.go:20
FunctionTest_convertTime
(t *testing.T)
pkg/wakabox/box_test.go:157
Functioninit
()
pkg/wakabox/box_test.go:16
Functioninit
()
cmd/box/main.go:15
Functionmain
()
cmd/box/main.go:19