Files
servicebase/pkg/common/util/string_util_test.go
2025-11-19 10:23:05 +08:00

19 lines
411 B
Go

package util
import (
"fmt"
"testing"
"gitea.ddegame.cn/open/servicebase/pkg/common"
)
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"))
}