nacos config
This commit is contained in:
@@ -74,7 +74,7 @@ func AutoGetEtcYaml() *string {
|
||||
dirs = dirs[0 : len(dirs)-1]
|
||||
|
||||
// 列出所有 curPath 下的文件夹
|
||||
files, err := ioutil.ReadDir(curPath)
|
||||
files, err := os.ReadDir(curPath)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
continue
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package autoconfig
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAutoConfig(t *testing.T) {
|
||||
AutoGetEtcYaml()
|
||||
log.Println(*AutoGetEtcYaml())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user