Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for listModules (0.09 sec)

  1. src/cmd/go/internal/modload/list.go

    	ListRetracted
    	ListDeprecated
    	ListVersions
    	ListRetractedVersions
    )
    
    // ListModules returns a description of the modules matching args, if known,
    // along with any error preventing additional matches from being identified.
    //
    // The returned slice can be nonempty even if the error is non-nil.
    func ListModules(ctx context.Context, args []string, mode ListMode, reuseFile string) ([]*modinfo.ModulePublic, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modcmd/why.go

    func runWhy(ctx context.Context, cmd *base.Command, args []string) {
    	modload.InitWorkfile()
    	modload.ForceUseModules = true
    	modload.RootMode = modload.NeedRoot
    	modload.ExplicitWriteGoMod = true // don't write go.mod in ListModules
    
    	loadOpts := modload.PackageOpts{
    		Tags:                     imports.AnyTags(),
    		VendorModulesInGOROOTSrc: true,
    		LoadTests:                !*whyVendor,
    		SilencePackageErrors:     true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 21:32:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top