mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-03 23:02:19 +00:00
18 lines
234 B
Go
18 lines
234 B
Go
package gomastodonstats
|
|
|
|
import "log"
|
|
|
|
func Run() {
|
|
log.Println("Fetching counts")
|
|
|
|
// Get Counts
|
|
metrics, err := getUserCounts()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
// Write to DB
|
|
persistMetrics(metrics)
|
|
|
|
// Output example
|
|
}
|