Score
0
Watch 64 Star 163 Fork 44

flike / kingshardGo

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
kingshard 是一个由Go开发高性能MySQL Proxy项目 spread retract

https://github.com/flike/kingshard

Clone or download
dev.sh 517 Bytes
Copy Edit Web IDE Raw Blame History
flike authored 2015-07-16 20:10 . change travis.yml
#!/bin/bash
export VTTOP=$(pwd)
export VTROOT="${VTROOT:-${VTTOP/\/src\/github.com\/flike\/kingshard/}}"
# VTTOP sanity check
if [[ "$VTTOP" == "${VTTOP/\/src\/github.com\/flike\/kingshard/}" ]]; then
echo "WARNING: VTTOP($VTTOP) does not contain src/github.com/flike/kingshard"
fi
export GOTOP=$VTTOP
function prepend_path()
{
# $1 path variable
# $2 path to add
if [ -d "$2" ] && [[ ":$1:" != *":$2:"* ]]; then
echo "$2:$1"
else
echo "$1"
fi
}
export GOPATH=$(prepend_path $GOPATH $VTROOT)

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/flikecn/kingshard.git
git@gitee.com:flikecn/kingshard.git
flikecn
kingshard
kingshard
master

Help Search