Welcome To Golang By Example

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

Category: Tech

Find and delete a substring in Go (Golang)

Posted on March 22, 2020March 22, 2020 by admin

Overview strings package of GO provides a ReplaceAll method that can be used to replace all non-overlapping instances of a given substring with a new substring. We can use this method to…

Find and delete a character in string in Go (Golang)

Posted on March 22, 2020March 22, 2020 by admin

Overview strings package of GO provides a ReplaceAll method that can be used to replace all non-overlapping instances of a given substring with a new substring. We can use this method to…

Find and delete in a array in Go (Golang)

Posted on March 22, 2020March 22, 2020 by admin

There can be two cases: Modify Original Array Keep copying to the original array skipping the item which needs to be deleted Reslice at the end Output: Do not modify the original…

Find and delete in a slice in Go (Golang)

Posted on March 19, 2020March 19, 2020 by admin

There can be two cases: Modify Original Slice Keep copying to the original slice skipping the item which needs to be deleted Reslice at the end Output: Do not modify the original…

Reverse a string in Go (Golang)

Posted on March 16, 2020March 16, 2020 by admin

In Golang string is a sequence of bytes. A string literal actually represents a UTF-8 sequence of bytes. In UTF-8, ASCII characters are single-byte corresponding to the first 128 Unicode characters. All other…

Swap two strings in Golang

Posted on March 16, 2020March 16, 2020 by admin

GO provides a very neat way of swapping of two strings. See below program Output:

Swap Characters of a string in Go (Golang)

Posted on March 16, 2020March 16, 2020 by admin

In Golang string is a sequence of bytes. A string literal actually represents a UTF-8 sequence of bytes. In UTF-8, ASCII characters are single-byte corresponding to the first 128 Unicode characters. All other…

All permutations of a string in Golang

Posted on March 16, 2020March 16, 2020 by admin

In Golang string is a sequence of bytes. A string literal actually represents a UTF-8 sequence of bytes. In UTF-8, ASCII characters are single-byte corresponding to the first 128 Unicode characters. All other…

Index character in a string in Go (Golang)

Posted on March 16, 2020March 16, 2020 by admin

In Golang string is a sequence of bytes. A string literal actually represents a UTF-8 sequence of bytes. In UTF-8, ASCII characters are single-byte corresponding to the first 128 Unicode characters. All other…

Find the index of the last instance of a substring in Go (Golang)

Posted on March 16, 2020March 16, 2020 by admin

Overview In GO string are UTF-8 encoded. strings package of GO provides a LastIndex method that can be used to get the index of the last occurrence of a substring in a…

Posts pagination

Previous 1 … 45 46 47 … 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