Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DEFAULT (0.23 sec)

  1. docs/en/docs/release-notes.md

    @app.get("/items/{item_id}")
    def main(
        item_id: int = Path(default=..., gt=0),
        query: str = Query(default=..., max_length=10),
        session: str = Cookie(default=..., min_length=3),
        x_trace: str = Header(default=..., title="Tracing header"),
    ):
        return {"message": "Hello World"}
    ```
    
    ...all these parameters are required because the default value is `...` (Ellipsis).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  2. doc/go_spec.html

    a single one that can proceed is chosen via a uniform pseudo-random selection.
    Otherwise, if there is a default case, that case is chosen.
    If there is no default case, the "select" statement blocks until
    at least one of the communications can proceed.
    </li>
    
    <li>
    Unless the selected case is the default case, the respective communication
    operation is executed.
    </li>
    
    <li>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top