- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for IsSlice3 (0.07 sec)
-
src/text/template/funcs.go
return item.Slice(idx[0], idx[1]), nil } // given item[i:j:k], make sure i <= j <= k. if idx[1] > idx[2] { return reflect.Value{}, fmt.Errorf("invalid slice index: %d > %d", idx[1], idx[2]) } return item.Slice3(idx[0], idx[1], idx[2]), nil } // Length // length returns the length of the item, with an error if it has no defined length. func length(item reflect.Value) (int, error) { item, isNil := indirect(item)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0)