This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { version } from '../../../package.json' | |
const authStorageKey = '_auth_store' | |
const state = { | |
version: '0.1.0', | |
accessToken: '' | |
} | |
const getters = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Chagne here for your project | |
package=github.com/mikunalpha/mkgo | |
output=mkgo | |
# Do not modify here if you do not know about it | |
vendor=$PWD/vendor | |
tmpvendor=$PWD/.vendor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package := github.com/mikunalpha/hello | |
output := hello | |
vendor := ${PWD}/vendor | |
tmpvendor := ${PWD}/.vendor | |
local:.gopath | |
mv $(vendor) $(tmpvendor) && ln -sf $(tmpvendor) ${PWD}/.gopath/src | |
env GOPATH=${PWD}/.gopath CGO_ENABLED=0 go build -o $(output) | |
mv $(tmpvendor) $(vendor) && ln -sf $(vendor) ${PWD}/.gopath/src |