Migration: go 1.12

This commit is contained in:
Dreamacro
2019-02-27 01:02:43 +08:00
parent 815e80f720
commit d75f9ff783
6 changed files with 8 additions and 16 deletions

View File

@ -24,6 +24,9 @@ func init() {
}
func main() {
// enable tls 1.3 and remove when go 1.13
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
if homedir != "" {
if !filepath.IsAbs(homedir) {
currentDir, _ := os.Getwd()