Welcome To Golang By Example

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

Category: Tech

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…

Doubly Linked List in Go (Golang)

Posted on June 15, 2021June 15, 2021 by admin

Overview A Doubly Linked List contains three fields in its node.  Data field  One Next pointer points to the next node in the list One Previous pointer which points to the previous…

Understanding Print function in Go (Golang)

Posted on June 6, 2021June 6, 2021 by admin

Overview Print is defined in the fmt package and is used to format a string and write to standard output Below is the function prototype of Print Print formats the string using…

Understanding Printf function in Go (Golang)

Posted on June 6, 2021June 6, 2021 by admin

Overview Printf is defined in the fmt package and is used to format a string and write to standard output https://golang.org/pkg/fmt/#Printf Below is the function prototype of Printf Printf formats the string…

Understanding Println function in Go (Golang)

Posted on June 6, 2021June 6, 2021 by admin

Overview Println is defined in the fmt package and is used to format a string and write to standard output https://golang.org/pkg/fmt/#Println Below is the function prototype of Println Println formats the string…

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: Replace all string which matches a Regular Expression

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

Overview Golang regexp package provides a method which provides a method named ReplaceAllString which given a string can be used to replace all substring within that string that matches a regular expression. https://golang.org/pkg/regexp/#Regexp.ReplaceAllString Below…

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: Matching raw or literal string

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

Overview We will be using regexp package in golang in our example that provides regular expression searching capabilitieshttps://golang.org/pkg/regexp/ Before looking into the regex itself, let’s look at some basic functions or methods…

Posts pagination

Previous 1 … 17 18 19 … 62 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