Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 3,660 for pats (0.04 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    # Dependencies in path operation decorators
    
    In some cases you don't really need the return value of a dependency inside your *path operation function*.
    
    Or the dependency doesn't return a value.
    
    But you still need it to be executed/solved.
    
    For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Anton Yakovlev <******@****.***> 1712418235 +0300
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 06 15:43:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/pod_container_manager_linux.go

    				// this is needed to handle path conversion for systemd environments.
    				// we pass the fully qualified path so decoding can work as expected
    				// since systemd encodes the path in each segment.
    				cgroupfsPath := path.Join(qcConversion, dirInfo[i].Name())
    				internalPath := m.cgroupManager.CgroupName(cgroupfsPath)
    				// we only care about base segment of the converted path since that
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 16:38:36 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. pkg/bootstrap/platform/gcp.go

    	if len(gcpm) == 0 {
    		return map[string]string{}
    	}
    	md := map[string]string{}
    	parts := strings.Split(gcpm, "|")
    	if len(parts) == 4 {
    		md[GCPProject] = parts[0]
    		md[GCPProjectNumber] = parts[1]
    		md[GCPCluster] = parts[2]
    		md[GCPLocation] = parts[3]
    	}
    
    	if quota != "" {
    		md[GCPQuotaProject] = quota
    	}
    
    	if clusterURL, err := constructGKEClusterURL(md); err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 00:37:33 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    			if fn, ok := pass.TypesInfo.Defs[n.Name].(*types.Func); ok {
    				funcDecls[fn] = &declInfo{decl: n}
    				decls = append(decls, fn)
    			}
    		case *ast.FuncLit:
    			funcLits[n] = new(litInfo)
    			lits = append(lits, n)
    		}
    	})
    
    	c := &CFGs{
    		defs:      pass.TypesInfo.Defs,
    		funcDecls: funcDecls,
    		funcLits:  funcLits,
    		pass:      pass,
    	}
    
    	// Pass 2. Build CFGs.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. internal/s3select/sql/stringfuncs.go

    		parts := strings.SplitN(text, pat, 2)
    		if len(parts) == 1 {
    			return "", false
    		}
    		res = parts[1]
    	}
    	return res, true
    }
    
    func dropRune(text string) (res string, ok bool) {
    	r := []rune(text)
    	if len(r) == 0 {
    		return "", false
    	}
    	return string(r[1:]), true
    }
    
    func evalSQLSubstring(s string, startIdx, length int) (res string, err error) {
    	rs := []rune(s)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/abi.go

    		if line == "" || strings.HasPrefix(line, "#") {
    			continue
    		}
    
    		parts := strings.Fields(line)
    		switch parts[0] {
    		case "def", "ref":
    			// Parse line.
    			if len(parts) != 3 {
    				log.Fatalf(`%s:%d: invalid symabi: syntax is "%s sym abi"`, file, lineNum, parts[0])
    			}
    			sym, abistr := parts[1], parts[2]
    			abi, valid := obj.ParseABI(abistr)
    			if !valid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. pkg/volume/validation/pv_validation.go

    	}
    	return allErrs
    }
    
    // ValidatePathNoBacksteps will make sure the targetPath does not have any element which is ".."
    func ValidatePathNoBacksteps(targetPath string) error {
    	parts := strings.Split(filepath.ToSlash(targetPath), "/")
    	for _, item := range parts {
    		if item == ".." {
    			return errors.New("must not contain '..'")
    		}
    	}
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/go.go

    func openbsdTrimLibVersion(lib string) (string, bool) {
    	parts := strings.Split(lib, ".")
    	if len(parts) != 4 {
    		return "", false
    	}
    	if parts[1] != "so" {
    		return "", false
    	}
    	if _, err := strconv.Atoi(parts[2]); err != nil {
    		return "", false
    	}
    	if _, err := strconv.Atoi(parts[3]); err != nil {
    		return "", false
    	}
    	return fmt.Sprintf("%s.%s", parts[0], parts[1]), true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/crypto/ed25519/ed25519_test.go

    	for scanner.Scan() {
    		lineNo++
    
    		line := scanner.Text()
    		parts := strings.Split(line, ":")
    		if len(parts) != 5 {
    			t.Fatalf("bad number of parts on line %d", lineNo)
    		}
    
    		privBytes, _ := hex.DecodeString(parts[0])
    		pubKey, _ := hex.DecodeString(parts[1])
    		msg, _ := hex.DecodeString(parts[2])
    		sig, _ := hex.DecodeString(parts[3])
    		// The signatures in the test vectors also include the message
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top