Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddNewUse (0.14 sec)

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

    				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))
    	f.Use = append(f.Use, &Use{Path: diskPath, ModulePath: modulePath, Syntax: line})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top