first commit
This commit is contained in:
17
pkg/common/util/string_util_test.go
Normal file
17
pkg/common/util/string_util_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
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"))
|
||||
}
|
||||
Reference in New Issue
Block a user