Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AutoQuote (0.09 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    		return err
    	}
    
    	r := &Retract{
    		VersionInterval: vi,
    	}
    	if vi.Low == vi.High {
    		r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low))
    	} else {
    		r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]")
    	}
    	if rationale != "" {
    		for _, line := range strings.Split(rationale, "\n") {
    			com := Comment{Token: "// " + line}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    				f.Syntax.updateLine(d.Syntax, "use", AutoQuote(diskPath))
    				need = false
    			} else {
    				d.Syntax.markRemoved()
    				*d = Use{}
    			}
    		}
    	}
    
    	if need {
    		f.AddNewUse(diskPath, modulePath)
    	}
    	return nil
    }
    
    func (f *WorkFile) AddNewUse(diskPath, modulePath string) {
    	line := f.Syntax.addLine(nil, "use", AutoQuote(diskPath))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/coderepo.go

    // for dependencies in the middle of a build, impossible to
    // correct. So we stopped.
    func LegacyGoMod(modPath string) []byte {
    	return fmt.Appendf(nil, "module %s\n", modfile.AutoQuote(modPath))
    }
    
    func (r *codeRepo) modPrefix(rev string) string {
    	return r.modPath + "@" + rev
    }
    
    func (r *codeRepo) retractedVersions(ctx context.Context) (func(string) bool, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top