Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 242 for rewrite (0.12 sec)

  1. src/cmd/gofmt/rewrite.go

    )
    
    func initRewrite() {
    	if *rewriteRule == "" {
    		rewrite = nil // disable any previous rewrite
    		return
    	}
    	f := strings.Split(*rewriteRule, "->")
    	if len(f) != 2 {
    		fmt.Fprintf(os.Stderr, "rewrite rule must be of the form 'pattern -> replacement'\n")
    		os.Exit(2)
    	}
    	pattern := parseExpr(f[0], "pattern")
    	replace := parseExpr(f[1], "replacement")
    	rewrite = func(fset *token.FileSet, p *ast.File) *ast.File {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/internal/buildid/rewrite.go

    			i := bytes.Index(buf[start:tiny+n], idBytes)
    			if i < 0 {
    				break
    			}
    			matches = append(matches, offset+int64(start+i-tiny))
    			h.Write(buf[start : start+i])
    			h.Write(zeros)
    			start += i + len(id)
    		}
    		if n < bufSize {
    			// Did not fill buffer, must be at end of file.
    			h.Write(buf[start : tiny+n])
    			break
    		}
    
    		// Process all but final tiny bytes of buf (bufSize = len(buf)-tiny).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/http-redirect-rewrite/httproute-rewrite.yaml

    #$ Used in:
    #$ - site-src/api-types/httproute.md
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: http-filter-rewrite
    spec:
      hostnames:
        - rewrite.example
      rules:
        - filters:
            - type: URLRewrite
              urlRewrite:
                hostname: elsewhere.example
          backendRefs:
            - name: example-svc
              weight: 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 389 bytes
    - Viewed (0)
  4. buildscripts/rewrite-old-new.sh

    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	"${WORK_DIR}/mc" mb minio/healing-rewrite-bucket --quiet --with-lock
    	"${WORK_DIR}/mc" cp \
    		buildscripts/verify-build.sh \
    		minio/healing-rewrite-bucket/ \
    		--disable-multipart --quiet
    
    	"${WORK_DIR}/mc" cp \
    		buildscripts/verify-build.sh \
    		minio/healing-rewrite-bucket/ \
    		--disable-multipart --quiet
    
    	"${WORK_DIR}/mc" cp \
    		buildscripts/verify-build.sh \
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/http-rewrite.yaml

    Alexander Zielenski <******@****.***> 1697824555 -0700
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 381 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/http-redirect-rewrite/httproute-rewrite-path.yaml

    #$ Used in:
    #$ - site-src/api-types/httproute.md
    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: http-filter-rewrite
    spec:
      hostnames:
        - rewrite.example
      rules:
        - matches:
            - path:
                type: PathPrefix
                value: /cardamom
          filters:
            - type: URLRewrite
              urlRewrite:
                hostname: elsewhere.example
                path:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 571 bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/kube/testdata/healthcheck-rewrite.yaml

    Jonh Wendell <******@****.***> 1700195286 -0500
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 17 04:28:06 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. releasenotes/notes/prom-rewrite.yaml

    Brian Avery <******@****.***> 1597180858 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 11 21:20:58 UTC 2020
    - 208 bytes
    - Viewed (0)
  9. src/cmd/gofmt/testdata/rewrite5.input

    // expressions without those nodes must also eliminate the associated
    // comments.
    
    package p
    
    func f(x int) int {
    	_ = x + x // this comment remains in the rewrite
    	_ = x /* this comment must not be in the rewrite */ + x
    	return x /* this comment must not be in the rewrite */ + x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 538 bytes
    - Viewed (0)
  10. src/cmd/internal/objabi/line.go

    		if i == len(rewrites) || rewrites[i] == ';' {
    			if new, ok := applyRewrite(file, rewrites[start:i]); ok {
    				return new, true
    			}
    			start = i + 1
    		}
    	}
    
    	return file, false
    }
    
    // applyRewrite applies the rewrite to the path,
    // returning the rewritten path and a boolean
    // indicating whether the rewrite applied at all.
    func applyRewrite(path, rewrite string) (string, bool) {
    	prefix, replace := rewrite, ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 23:10:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top