Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newVCSRepo (0.38 sec)

  1. src/cmd/go/internal/modfetch/codehost/vcs.go

    type vcsCacheKey struct {
    	vcs    string
    	remote string
    }
    
    func NewRepo(ctx context.Context, vcs, remote string) (Repo, error) {
    	return vcsRepoCache.Do(vcsCacheKey{vcs, remote}, func() (Repo, error) {
    		repo, err := newVCSRepo(ctx, vcs, remote)
    		if err != nil {
    			return nil, &VCSError{err}
    		}
    		return repo, nil
    	})
    }
    
    var vcsRepoCache par.ErrCache[vcsCacheKey, Repo]
    
    type vcsRepo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top