codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java
private void writePresignClientHelpers(
            GoWriter writer,
            Model model,
            SymbolProvider symbolProvider,
            ServiceShape serviceShape
    ) {
        // Helper function for NopClient
        writer.openBlock("func $L(o *Options) {", "}", NOP_HTTP_CLIENT_OPTION_FUNC_NAME, () -> {
            Symbol nopClientSymbol = SymbolUtils.createPointableSymbolBuilder("NopClient",
                    SmithyGoDependency.SMITHY_HTTP_TRANSPORT)
                    .build();

            writer.write("o.HTTPClient = $T{}", nopClientSymbol);
        });
        writer.write("");
    }
/**
     * Writes the Presign client's helper methods.
     *
     * @param writer writer to write to
     */
Writes the Presign client's helper methods.
@param writer writer to write to
Writes the Presign client ' s helper methods . @param writer writer to write to
private void writePresignClientHelpers(
            GoWriter writer,
            Model model,
            SymbolProvider symbolProvider,
            ServiceShape serviceShape
    ) {
        writer.openBlock("func $L(o *Options) {", "}", NOP_HTTP_CLIENT_OPTION_FUNC_NAME, () -> {
            Symbol nopClientSymbol = SymbolUtils.createPointableSymbolBuilder("NopClient",
                    SmithyGoDependency.SMITHY_HTTP_TRANSPORT)
                    .build();
            writer.write("o.HTTPClient = $T{}", nopClientSymbol);
        });
        writer.write("");
    }
private void writePresignClientHelpers ( GoWriter writer , Model model , SymbolProvider symbolProvider , ServiceShape serviceShape ) { writer . openBlock ( "func $L(o *Options) {" , "}" , NOP_HTTP_CLIENT_OPTION_FUNC_NAME , ( ) -> { Symbol nopClientSymbol = SymbolUtils . createPointableSymbolBuilder ( "NopClient" , SmithyGoDependency . SMITHY_HTTP_TRANSPORT ) . build ( ) ; writer . write ( "o.HTTPClient = $T{}" , nopClientSymbol ) ; } ) ; writer . write ( "" ) ; }
Writes the Presign client's helper methods.
Writes the Presign client ' s helper methods .
// Helper function for NopClient