mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* Add gandi LiveDNS api provider * vendor testify and gandi live DNS * govendor update github.com/prasmussen/gandi-api/{client,live_dns} * Fix Gandi-livedns TXT unit test * TravisCI should use go 1.10
15 lines
344 B
Plaintext
15 lines
344 B
Plaintext
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]
|
|
}
|
|
}
|