mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-02 06:12:19 +00:00
Test mastodon posting
This commit is contained in:
parent
aec56e7352
commit
3aeff25285
8 changed files with 78 additions and 2 deletions
|
@ -4,6 +4,8 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"golang.org/x/text/cases"
|
||||
)
|
||||
|
||||
// Stores out metric/row data
|
||||
|
@ -114,5 +116,5 @@ func getUserCounts() ([]metric, error) {
|
|||
}
|
||||
|
||||
func getPrintableString(m metric) string {
|
||||
return fmt.Sprintf("%s: %d", m.Service, m.MetricValue)
|
||||
return fmt.Sprintf("%s: %d", cases.Title(m.Service), m.MetricValue)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue