- Sort Score
- Num 10 results
- Language All
Results 1341 - 1350 of 2,175 for IF (0.03 seconds)
-
internal/http/close.go
func DrainBody(respBody io.ReadCloser) { // Callers should close resp.Body when done reading from it. // If resp.Body is not closed, the Client's underlying RoundTripper // (typically Transport) may not be able to reuse a persistent TCP // connection to the server for a subsequent "keep-alive" request. if respBody != nil { // Drain any remaining Body and then close the connection.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 1.7K bytes - Click Count (0) -
logger/slog_test.go
logger.Trace(context.Background(), time.Now(), func() (string, int64) { return "select count(*) from users", 0 }, nil) if strings.Contains(buf.String(), "gorm/logger/slog.go") { t.Error("Found internal slog.go reference in caller frame. Expected only test file references.") } if !strings.Contains(buf.String(), "gorm/logger/slog_test.go") {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 30 10:56:26 GMT 2025 - 782 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial015_an_py310.py
} def check_valid_id(id: str): if not id.startswith(("isbn-", "imdb-")): raise ValueError('Invalid ID format, it must start with "isbn-" or "imdb-"') return id @app.get("/items/") async def read_items( id: Annotated[str | None, AfterValidator(check_valid_id)] = None, ): if id: item = data.get(id) else:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 01 22:02:35 GMT 2025 - 768 bytes - Click Count (0) -
docs/en/docs/tutorial/body-nested-models.md
Then we can declare `tags` as a set of strings: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *} With this, even if you receive a request with duplicate data, it will be converted to a set of unique items. And whenever you output that data, even if the source had duplicates, it will be output as a set of unique items. And it will be annotated / documented accordingly too.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.7K bytes - Click Count (0) -
internal/kms/config_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package kms import ( "os" "testing" ) func TestIsPresent(t *testing.T) { for i, test := range isPresentTests { os.Clearenv() for k, v := range test.Env { t.Setenv(k, v) } ok, err := IsPresent() if err != nil && !test.ShouldFail { t.Fatalf("Test %d: %v", i, err) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 2.7K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/MethodsRenderer.java
} if (!hasMethods(classDoc)) { Element para = document.createElement("para"); summarySection.appendChild(para); para.appendChild(document.createTextNode("No methods")); } } @Override public void renderDetailsTo(ClassDoc classDoc, Element parent) { if (hasMethods(classDoc)) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/PropertiesRenderer.java
} if (!hasProperties(classDoc)) { Element para = document.createElement("para"); summarySection.appendChild(para); para.appendChild(document.createTextNode("No properties")); } } @Override public void renderDetailsTo(ClassDoc classDoc, Element parent) { if (hasProperties(classDoc)) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.1K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/PropertyDetailRenderer.java
title.appendChild(literal); literal.appendChild(document.createTextNode(propertyDoc.getName())); if (!propertyDoc.getMetaData().isProviderApi()) { if (!propertyDoc.getMetaData().isWriteable()) { title.appendChild(document.createTextNode(" (read-only)")); } else if (!propertyDoc.getMetaData().isReadable()) { title.appendChild(document.createTextNode(" (write-only)"));
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 3.5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/nullaway/NullawayStatusService.kt
val uncheckedCount = projectsWithUncheckedDeps.size if (enabledCount == seenProjectsCount) { println("All have NullAway enabled.") } else { println("NullAway enabled in ${enabledCount} ${projectS(enabledCount)}.") if (projectsToEnableNullaway.isNotEmpty()) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Aug 20 13:18:23 GMT 2025 - 3.8K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java
} private MethodLinkMetaData findMethod(String method) { if (method.endsWith("...)")) { // Should reuse the link parsing stuff from JavadocLinkConverter instead method = method.substring(0, method.length() - 4) + "[])"; } MethodLinkMetaData metaData = methods.get(method); if (metaData != null) { return metaData; }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Apr 11 11:17:34 GMT 2025 - 7.4K bytes - Click Count (0)