Compare commits
2 commits
3c4ca980e4
...
b0bccb7e36
Author | SHA1 | Date | |
---|---|---|---|
b0bccb7e36 | |||
1939f91733 |
3 changed files with 2 additions and 11 deletions
|
@ -96,7 +96,7 @@ func (a Account) String() string {
|
||||||
utilities.Header("ACCOUNT ID:"),
|
utilities.Header("ACCOUNT ID:"),
|
||||||
a.ID,
|
a.ID,
|
||||||
utilities.Header("JOINED ON:"),
|
utilities.Header("JOINED ON:"),
|
||||||
utilities.FormatDate(a.CreatedAt),
|
a.CreatedAt.Format("02 Jan 2006"),
|
||||||
utilities.Header("STATS:"),
|
utilities.Header("STATS:"),
|
||||||
a.FollowersCount,
|
a.FollowersCount,
|
||||||
a.FollowingCount,
|
a.FollowingCount,
|
||||||
|
|
|
@ -186,7 +186,7 @@ func (s Status) String() string {
|
||||||
utilities.Header("STATUS ID:"),
|
utilities.Header("STATUS ID:"),
|
||||||
s.ID,
|
s.ID,
|
||||||
utilities.Header("CREATED AT:"),
|
utilities.Header("CREATED AT:"),
|
||||||
utilities.FormatTime(s.CreatedAt),
|
s.CreatedAt.Format("02 Jan 2006, 03:04"),
|
||||||
utilities.Header("STATS:"),
|
utilities.Header("STATS:"),
|
||||||
s.RebloggsCount,
|
s.RebloggsCount,
|
||||||
s.FavouritesCount,
|
s.FavouritesCount,
|
||||||
|
|
|
@ -2,7 +2,6 @@ package utilities
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
|
@ -55,11 +54,3 @@ func WrapLine(line, separator string, charLimit int) string {
|
||||||
func Header(text string) string {
|
func Header(text string) string {
|
||||||
return boldblue + text + reset
|
return boldblue + text + reset
|
||||||
}
|
}
|
||||||
|
|
||||||
func FormatDate(date time.Time) string {
|
|
||||||
return date.Local().Format("02 Jan 2006")
|
|
||||||
}
|
|
||||||
|
|
||||||
func FormatTime(date time.Time) string {
|
|
||||||
return date.Local().Format("02 Jan 2006, 15:04 (MST)")
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue