Files
servicebase/pkg/common/util/string_util_test.go
2025-11-18 17:48:20 +08:00

18 lines
388 B
Go

package util
import (
"servicebase/pkg/common"
"fmt"
"testing"
)
func Test_processTimeStr(t *testing.T) {
tmp, e := ProcessTimeStr("2025-05-29 09:08:38 +0800 CST")
fmt.Printf("%v %v\n", tmp, e)
}
func TestParseUrlParameter(t *testing.T) {
// assets/img/op_1754967614.png?c=#000000&s=160
ParseUrlParameter(common.FullPhotoUrl("assets/img/op_1754967614.png?c=%23000000&s=160"))
}