- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 64 for xstr (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
} func (ss SortableSliceOfMaps) Len() int { return len(ss.s) } func (ss SortableSliceOfMaps) Less(i, j int) bool { iStr := fmt.Sprintf("%v", ss.s[i][ss.k]) jStr := fmt.Sprintf("%v", ss.s[j][ss.k]) return sort.StringsAreSorted([]string{iStr, jStr}) } func (ss SortableSliceOfMaps) Swap(i, j int) { tmp := ss.s[i] ss.s[i] = ss.s[j] ss.s[j] = tmp }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 23:34:23 UTC 2023 - 75.5K bytes - Viewed (0) -
pkg/wasm/cache.go
if d, err := name.NewDigest(key.downloadURL[len(ociURLPrefix):]); err == nil { // If there is no checksum and the digest is suffixed in URL, use the digest. dstr := d.DigestStr() if strings.HasPrefix(dstr, sha256SchemePrefix) { key.checksum = dstr[len(sha256SchemePrefix):] } // For other digest scheme, give up to use cache. } } if len(key.checksum) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0) -
operator/pkg/translate/translate_value.go
if err != nil { return err } if !found { scope.Debugf("path %s not found in helm Value.yaml tree, skip mapping.", inPath) continue } if mstr, ok := m.(string); ok && mstr == "" { scope.Debugf("path %s is empty string, skip mapping.", inPath) continue } // Zero int values are due to proto3 compiling to scalars rather than ptrs. Skip these because values of 0 are
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 03:52:24 UTC 2024 - 21.6K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
after() } func (t *T) report() { tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds()) format := "--- %s: %s %s\n%s" if t.failed { fmt.Printf(format, "FAIL", t.name, tstr, t.output) } else if *chatty { fmt.Printf(format, "PASS", t.name, tstr, t.output) } } func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) { ok = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
``` The query parameter `q` is of type `Union[str, None]` (or `str | None` in Python 3.10), that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required. !!! note FastAPI will know that the value of `q` is not required because of the default value `= None`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri May 31 02:38:05 UTC 2024 - 25.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/version.go
} else if len(split) < 2 { pre = split[0] + ".0" // Append .0 to a partial label } pre = "-" + pre } } vStr := fmt.Sprintf("v%d.%d.%d%s", v.Major(), v.Minor(), patch, pre) return vStr, nil } // Validate if the remote version is one Minor release newer than the client version. // This is done to conform with "stable-X" and only allow remote versions from
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:50:19 UTC 2024 - 9.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-message.h
Message& operator <<(const ::std::wstring& wstr); #endif // GTEST_HAS_STD_WSTRING #if GTEST_HAS_GLOBAL_WSTRING // Converts the given wide string to a narrow string using the UTF-8 // encoding, and streams the result to this Message object. Message& operator <<(const ::wstring& wstr); #endif // GTEST_HAS_GLOBAL_WSTRING
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 9K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils.go
return parseInt32(logger, value) } return 0 } func parseInt32(logger klog.Logger, vStr string) int32 { if vInt, err := strconv.Atoi(vStr); err != nil { logger.Error(err, "Failed to parse the value", "value", vStr) return 0 } else if vInt < 0 || vInt > math.MaxInt32 { logger.Info("The value is invalid", "value", vInt) return 0 } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 00:44:53 UTC 2023 - 17.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
``` 由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。 所以: ```Python q: Union[str, None] = Query(default=None) ``` ...使得参数可选,等同于: ```Python q: str = None ``` 但是 `Query` 显式地将其声明为查询参数。 然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数: ```Python q: Union[str, None] = Query(default=None, max_length=50) ``` 将会校验数据,在数据无效时展示清晰的错误信息,并在 OpenAPI 模式的*路径操作*中记录该参数。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/query-params-str-validations.md
```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial001.py!} ``` 쿼리 매개변수 `q`는 `Optional[str]` 자료형입니다. 즉, `str` 자료형이지만 `None` 역시 될 수 있음을 뜻하고, 실제로 기본값은 `None`이기 때문에 FastAPI는 이 매개변수가 필수가 아니라는 것을 압니다. !!! note "참고" FastAPI는 `q`의 기본값이 `= None`이기 때문에 필수가 아님을 압니다. `Optional[str]`에 있는 `Optional`은 FastAPI가 사용하는게 아니지만, 편집기에게 더 나은 지원과 오류 탐지를 제공하게 해줍니다. ## 추가 검증
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Feb 11 13:48:31 UTC 2024 - 9.6K bytes - Viewed (0)