mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-15 07:18:04 +00:00
i used this script, a little clunky but it got the job done
```bash
for file in `find . -type f -print | grep '\.go'`; do
sed '1,/^\/\/ limitations under the License.$/d' $file > $file.tmp;
result=`cat $file.tmp`
if [[ result != "" ]]; then
gofmt $file.tmp &> /dev/null;
if [[ $? == 0 ]]; then
mv $file.tmp $file && gofmt -w $file;
else
rm $file.tmp;
fi
else
rm $file.tmp;
fi
done
```
24 lines
1.3 KiB
Go
24 lines
1.3 KiB
Go
package client
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
// Predefined Pilosa errors.
|
|
var (
|
|
ErrEmptyCluster = errors.New("No usable addresses in the cluster")
|
|
ErrIndexExists = errors.New("Index exists")
|
|
ErrFieldExists = errors.New("Field exists")
|
|
ErrInvalidIndexName = errors.New("Invalid index name")
|
|
ErrInvalidFieldName = errors.New("Invalid field name")
|
|
ErrInvalidLabel = errors.New("Invalid label")
|
|
ErrInvalidKey = errors.New("Invalid key")
|
|
ErrTriedMaxHosts = errors.New("Tried max hosts, still failing")
|
|
ErrAddrURIClusterExpected = errors.New("Addresses, URIs or a cluster is expected")
|
|
ErrInvalidQueryOption = errors.New("Invalid query option")
|
|
ErrInvalidIndexOption = errors.New("Invalid index option")
|
|
ErrInvalidFieldOption = errors.New("Invalid field option")
|
|
ErrNoFragmentNodes = errors.New("No fragment nodes")
|
|
ErrNoShard = errors.New("Index has no shards")
|
|
ErrUnknownType = errors.New("Unknown type")
|
|
ErrSingleServerAddressRequired = errors.New("OptClientManualServerAddress requires a single URI or address")
|
|
ErrPreconditionFailed = errors.New("Precondition failed")
|
|
)
|