Azure / autorest.go

Extension for AutoRest (https://github.com/Azure/autorest) that generates Go code
MIT License
65 stars 42 forks source link

client_factory.go renamed to client.go #1213

Closed Alancere closed 1 day ago

Alancere commented 1 month ago

The client.go generated by typespec-go seems to have the same functionality as client_factory.go image

jhendrixMSFT commented 1 month ago

This uses the modeled hierarchical client defined in the tsp. We could consider renaming this to ClientFactory. Can that be done in a client.tsp file for Go?

tadelesh commented 4 weeks ago

Redesign the logic for TypeSpec as it has pure client hierarchy. Use @clientName to rename the namespace to keep backward compatibility and prevent naming collision.

tadelesh commented 4 weeks ago

Need further discussion: how go deal with naming collision with client and subclient? tcgc is forced client name ends with Cleint which makes it impossible to rename in client.tsp