Welcome To Golang By Example

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

Tag: compare

string compare in Go (Golang)

Posted on March 10, 2020March 10, 2020 by admin

Overview In Golang string are UTF-8 encoded. strings package of GO provides a Compare method that can be used to compare two strings in Go. Note that this method compares strings lexicographically….

Comparing floating point numbers in Golang

Posted on December 23, 2019December 23, 2019 by admin

Introduction Go Lang has two types of floats float32 float64 Comparing Same Float Types Two floating point numbers can be compared using  Go’s == operator assuming they are the same float types….

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