Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Tag: golang

Return 400 (Bad Request) Status Code in http response in Go (Golang)

Posted on July 10, 2021July 10, 2021 by admin

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

Posted on July 7, 2021July 7, 2021 by admin

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

Posted on June 17, 2021June 17, 2021 by admin

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)

Posted on June 16, 2021June 16, 2021 by admin

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…

Golang Regex: Backreferences

Posted on June 1, 2021June 1, 2021 by admin

Overview Golang regex package regexp uses the re2 engine which doesn’t support backreferences. You can check the same here https://github.com/google/re2/wiki/Syntax It does mention that it doesn’t support backreferences. However, there is another…

Golang Regex: Understanding dot ‘.’ character

Posted on May 27, 2021May 27, 2021 by admin

Overview Dot ‘.’ character is one of the most commonly used metacharacters in the regular expression. It is used to match any character. It can also match a new line if a…

Golang Regex: Case insensitive regular expression matching in Go (Golang)

Posted on May 21, 2021May 21, 2021 by admin

Overview The default behavior for regular expression matching in golang is case sensitive. But the default behavior can be changed by adding a set of flags to the beginning of the regular…

Delete a kth node from back in a Singly Linked List in Go (Golang)

Posted on May 20, 2021May 20, 2021 by admin

Overview Delete a kth node from the back in a Singly Linked List Input linked list:  Node to be removed is 3rd from the back, then Output linked list:  Program Output Explanation…

Golang Regex: Match prefix or suffix of a string

Posted on May 20, 2021May 20, 2021 by admin

Overview Golang regex contains two anchor characters that can be used to match the prefix and suffix of a string given a regular expression. These two characters are Caret Character ‘^’ –…

Alternation (OR) of regexes in Go (Golang)

Posted on May 10, 2021May 10, 2021 by admin

Overview It is similar to OR operation. Join two regexes by using the | operator. If there are two regexes r1 and r2, then alternation is represented as below It will either…

Posts pagination

Previous 1 … 13 14 15 … 41 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme