>From studying Go I learned:
there is no need of if/else unless there is a statement after it which
depends on it
if
else
statement //depends on if/else branch/path
Isn't it so?
On Sunday, July 30, 2017 at 4:22:00 PM UTC-4, Eric Brown wrote:
>
> What is the standard way to construct|format the
This handles empty fields [], by adding them to a list of fields or
ignoring them (it's up to you).
I would think a case such as , is an error. That could be handled by
state machine, ie: Close delim found, with no Open delim,
That would be easy enough to code.
https://play.golang.org/p/TVsp
Routing Enhancements for Go 1.22
I have this in the init func for main
http.HandleFunc("GET /posts", handlePost2)
Yet, in the browser, when http://127.0.0.1/posts is entered, it returns
404 page not found.
Am I doing something wrong? Maybe the problem lies elsewhere?
Thank you,
Roger
func
rds,
> Per Johansson
>
> On Sunday, June 2, 2024 at 11:26:36 PM UTC+2 rogerjd wrote:
>
>> Routing Enhancements for Go 1.22
>>
>> I have this in the init func for main
>> http.HandleFunc("GET /posts", handlePost2)
>>
>> Yet, in the
If it helps someone else, :
The problem was it was using go version 1.20
Needed to change go.mod to use
go 1.22.3
On Monday, June 3, 2024 at 1:20:20 PM UTC-4 rogerjd wrote:
> Your code works both in the playground and on my local machine.
> I need to figure what I did wrong originally.
&