diff --git a/src/frontend/src/content/docs/app-host/go-apphost-conventions.mdx b/src/frontend/src/content/docs/app-host/go-apphost-conventions.mdx index 9eb29923fc..90a55ce688 100644 --- a/src/frontend/src/content/docs/app-host/go-apphost-conventions.mdx +++ b/src/frontend/src/content/docs/app-host/go-apphost-conventions.mdx @@ -28,6 +28,10 @@ builder.AddGoApp("api", "./api"). The [`WithHttpEndpoint` API reference](/reference/api/go/aspire.hosting/withhttpendpoint/) describes each field of `WithHttpEndpointOptions`. +If you pass more than one options struct to a method, the SDK merges them. A field that's set in a later struct replaces the same field in an earlier one, and nested structs and maps merge recursively. Callback fields, such as `Configure`, and the `CancellationToken` field are taken whole from the later struct. + +Where a parameter accepts a number or another type, such as the `value` of `WithField`, you can pass any Go numeric type, such as an untyped constant `3` (an `int`). The SDK sends all of them as JSON numbers. + ## Errors The SDK reports errors in two ways.