github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/go-parser/new-repository.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package parser 4 5 // NewRepository use to make new repository object otherwise initialize maps yourself! 6 func NewRepository() *Repository { 7 var repo = Repository{ 8 Files: make(map[string]*File), 9 Imports: make(map[string]*Import), 10 Functions: make(map[string]*Function), 11 Types: make(map[string]*Type), 12 Dependencies: make(map[string]*Repository), 13 } 14 15 return &repo 16 }