Replies: 1 comment 1 reply
-
response/outcomeIt is indeed always difficult to enter names. Giving a name in a Go environment is even more difficult. I would have preferred to use If I had used web or httpThe package of the interfaces does not have the same name as the package name of the struct because you often have a conflict when you set up a struct and return an interface (with the same package name). inter/contractI have chosen not to use All interfaces in package interIn addition, all interfaces are in 1 package, because you want to prevent a circle import in Go. Placing all interfaces in 1 package is also better for autocomplete.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I had a browse through the documentation.
I know that naming things is quite difficult, however :
I was just curious as what made you choose the class names
inter.xandoutcome.x?to me it seemed to be a bit more intuitive if
interwas just namedweborhttpe.g.http.Request,http.Response.and also if
outcomewas just namedresponsee.g.response.Html( ... )orresponse.Json( ... )what do you think?
... and just to be clear, I appreciate all the hard work you've put into this project. It looks very good.
Beta Was this translation helpful? Give feedback.
All reactions