add fetching message history
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
@@ -32,3 +33,7 @@ func ConvertStringToRgb(str string) ([3]uint8, error) {
|
||||
func ConvertStringUuid(str string) (uuid.UUID, error) {
|
||||
return uuid.Parse(str)
|
||||
}
|
||||
|
||||
func ConvertStringTimestamp(str string) (time.Time, error) {
|
||||
return time.Parse(time.RFC3339, str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user