常用类型及数据操作方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
179 B

3 years ago
  1. package helper
  2. import (
  3. "testing"
  4. )
  5. func Test_GetPage(t *testing.T) {
  6. // var page, page_size string = "0", "10"
  7. from, offset := GetPage(2, 10)
  8. t.Log(from)
  9. t.Log(offset)
  10. }