removed golang x package in favour of the std lib

This commit is contained in:
Emilien Puget
2024-06-15 09:55:44 +02:00
committed by quobix
parent f27d57aab0
commit cbe1201cbd
13 changed files with 22 additions and 31 deletions

View File

@@ -22,7 +22,6 @@ import (
"github.com/pb33f/libopenapi/utils"
"github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath"
"golang.org/x/sync/syncmap"
"gopkg.in/yaml.v3"
)
@@ -73,7 +72,7 @@ func createNewIndex(rootNode *yaml.Node, index *SpecIndex, avoidBuildOut bool) *
index.nodeMap = make(map[int]map[int]*yaml.Node)
go index.MapNodes(rootNode) // this can run async.
index.cache = new(syncmap.Map)
index.cache = new(sync.Map)
// boot index.
results := index.ExtractRefs(index.root.Content[0], index.root, []string{}, 0, false, "")