mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 07:26:47 +00:00
Split up common.go, file path fixes and much more
This commit is contained in:
@@ -2,9 +2,8 @@ package utils
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/thrasher-/gocryptotrader/common"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -32,5 +31,5 @@ func AdjustGoMaxProcs(maxProcs int) error {
|
||||
|
||||
// GetTLSDir returns the default TLS dir
|
||||
func GetTLSDir(dir string) string {
|
||||
return dir + common.GetOSPathSlash() + defaultTLSDir
|
||||
return filepath.Join(dir, defaultTLSDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user