Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for DropUse (0.15 sec)

  1. src/cmd/go/testdata/script/work_edit.txt

    go work edit -go 1.18
    cmp go.work go.work.want_go_118
    
    go work edit -dropuse m
    cmp go.work go.work.want_dropuse_m
    
    go work edit -replace=x.1@v1.3.0=y.1@v1.4.0 -replace='x.1@v1.4.0 = ../z'
    cmp go.work go.work.want_add_replaces
    
    go work edit -use n -use ../a -use /b -use c -use c
    cmp go.work go.work.want_multiuse
    
    go work edit -dropuse /b -dropuse n
    cmp go.work go.work.want_multidropuse
    
    go work edit -dropreplace='x.1@v1.4.0'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/workcmd/edit.go

    			base.Fatalf("go: -use=%s: %v", arg, err)
    		}
    	})
    }
    
    // flagEditworkDropUse implements the -dropuse flag.
    func flagEditworkDropUse(arg string) {
    	workedits = append(workedits, func(f *modfile.WorkFile) {
    		if err := f.DropUse(modload.ToDirectoryPath(arg)); err != nil {
    			base.Fatalf("go: -dropdirectory=%s: %v", arg, err)
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    		}
    	}
    
    	// TODO(#45713): Add module path to comment.
    
    	for diskPath, modulePath := range need {
    		f.AddNewUse(diskPath, modulePath)
    	}
    	f.SortBlocks()
    }
    
    func (f *WorkFile) DropUse(path string) error {
    	for _, d := range f.Use {
    		if d.Path == path {
    			d.Syntax.markRemoved()
    			*d = Use{}
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/cmd/go/alldocs.go

    // replacing any existing godebug lines with the given key.
    //
    // The -dropgodebug=key flag drops any existing godebug lines
    // with the given key.
    //
    // The -use=path and -dropuse=path flags
    // add and drop a use directive from the go.work file's set of module directories.
    //
    // The -replace=old[@v]=new[@v] flag adds a replacement of the given
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  5. docs/fr/docs/features.md

    * <a href="https://github.com/swagger-api/swagger-ui" class="external-link" target="_blank"><strong>Swagger UI</strong></a>, propose une documentation interactive. Vous permet de directement tester l'API depuis votre navigateur.
    
    ![Swagger UI interaction](https://fastapi.tiangolo.com/img/index/index-03-swagger-02.png)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. docs/en/docs/help-fastapi.md

    * To help [translate the documentation](contributing.md#translations){.internal-link target=_blank} to your language.
        * You can also help to review the translations created by others.
    * To propose new documentation sections.
    * To fix an existing issue/bug.
        * Make sure to add tests.
    * To add a new feature.
        * Make sure to add tests.
        * Make sure to add documentation if it's relevant.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/object.go

    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    		// We can't simply replace it with new(Signature) either,
    		// as this would violate object.{Type,color} invariants.
    		// TODO(adonovan): propose to disallow NewFunc with nil *Signature.
    	}
    	return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, false, nil}
    }
    
    // Signature returns the signature (type) of the function or method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. src/go/types/object.go

    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    		// We can't simply replace it with new(Signature) either,
    		// as this would violate object.{Type,color} invariants.
    		// TODO(adonovan): propose to disallow NewFunc with nil *Signature.
    	}
    	return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, false, nil}
    }
    
    // Signature returns the signature (type) of the function or method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top