10 lines
191 B
Bash
Executable file
10 lines
191 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
package=$__object_id
|
|
|
|
cat<<EOF
|
|
[ -f /etc/environment ] && . /etc/environment
|
|
[ -f /etc/profile ] && . /etc/profile
|
|
export GOPATH=\${GOPATH:-/opt/gocode}
|
|
go get $package
|
|
EOF
|