Files
cas_tt_cloud_backend/utils/string_test.go

16 lines
281 B
Go
Raw Normal View History

2021-09-28 11:47:19 +08:00
package utils
import (
"fmt"
"strings"
"testing"
)
2021-09-28 11:47:19 +08:00
func TestToSnake(t *testing.T) {
//src := []int{1, 2, 3, 4, 5, 6}
//t.Log(src)
//ReverseSlice(src)
//t.Log(src)
t.Log(fmt.Sprintf("SELECT * FROM sys_user WHERE id IN (%v)", strings.Join([]string{"1", "2", "3"}, ",")))
2021-09-28 11:47:19 +08:00
}