Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 500 (StatusInternalServerError) HTTP…
Tag: go
Return 201 (StatusCreated) Status Code in HTTP response in Go (Golang)
Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 201 (StatusCreated) HTTP…
Return 200 (StatusOK) Status Code in HTTP response in Go (Golang) -P
Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 200 (StatusOK) HTTP…
Return 403 (Forbidden) Status Code in HTTP response in Go (Golang)
Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 403 (Forbidden) HTTP…
Return 401 (UnAuthorized) Status Code in HTTP response in Go (Golang)
Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 401 (Unauthorized) HTTP…
Return 404 (Resource Not Found) Status Code in http response in Go (Golang)
Overview http package of golang provides the status code constant which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 404 (Resource Not…
Return 400 (Bad Request) Status Code in http response in Go (Golang)
Overview net/http package of golang provides the status code constants which could be used to return different status codes- https://golang.org/src/net/http/status.go The same can also be used to return the 400 (Bad Request)…
Golang Regex: Match a floating-point number in Regular Expression
Overview A floating-point number could have below properties It could have a negative and positive sign The integer part could be optional when the decimal part is present The dot and decimal…
Golang Regex: Optional Operator or question mark (?) in regular expression
Overview Question Mark is the optional operator in regex. This means that it optionally matches the preceding character before the question mark Eg. This will match both “abc” and “abcd”. Program Let’s…
Reverse Doubly Linked List in Go (Golang)
Overview A Doubly Linked List can be reversed by below two methods: By swapping previous and next pointers of nodes. By using stack In this tutorial, we will cover the first method…