- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for if (0.18 sec)
-
doc/go_spec.html
</li> </ol> <h3 id="If_statements">If statements</h3> <p> "If" statements specify the conditional execution of two branches according to the value of a boolean expression. If the expression evaluates to true, the "if" branch is executed, otherwise, if present, the "else" branch is executed. </p> <pre class="ebnf">
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 00:39:16 GMT 2024 - 279.6K bytes - Viewed (0) -
docs/en/docs/release-notes.md
app = FastAPI() @app.get("/items/invalidnone", response_model=Item) def get_invalid_none(): if flag: return {"name": "foo"} # if flag is False, at this point the function will implicitly return None ``` If you have *path operations* using `response_model` that need to be allowed to return `None`, make it explicit in `response_model` using `Union[Something, None]`:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Apr 28 00:28:00 GMT 2024 - 385.5K bytes - Viewed (1)