summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/objx/codegen/array-access.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/stretchr/objx/codegen/array-access.txt')
-rw-r--r--vendor/github.com/stretchr/objx/codegen/array-access.txt14
1 files changed, 0 insertions, 14 deletions
diff --git a/vendor/github.com/stretchr/objx/codegen/array-access.txt b/vendor/github.com/stretchr/objx/codegen/array-access.txt
deleted file mode 100644
index 306023475..000000000
--- a/vendor/github.com/stretchr/objx/codegen/array-access.txt
+++ /dev/null
@@ -1,14 +0,0 @@
- case []{1}:
- a := object.([]{1})
- if isSet {
- a[index] = value.({1})
- } else {
- if index >= len(a) {
- if panics {
- panic(fmt.Sprintf("objx: Index %d is out of range because the []{1} only contains %d items.", index, len(a)))
- }
- return nil
- } else {
- return a[index]
- }
- }