Closed Alancere closed 1 day 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?
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.
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
The
client.go
generated by typespec-go seems to have the same functionality asclient_factory.go