Ankita

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

The Go package responsible for defining regular expressions and performing pattern matching is called regexp. When using a regular expression in your code, you should consider thedefinition of the regular expression as the most important part of the relevant code because the functionality of that code depends on the regular expression.

C or C++ background, it is perfectly legal for a Go

function to return the memory address of a local variable.

Structures are very important in Go and are used extensively in real world programs because they allow you to group as many values as you want and treat those values as a single entity

=================NEW KEYWORD ================= # Go supports the new keyword, which allows you to allocate new objects. # new returns the memory address of the allocated object. # new returns a pointer. # The main difference between new and make is that variables created with make are properly initialized without just zeroing the allocated memory space. Additionally, make can only be applied to maps, channels, and slices, and does not return a memory address, which means that make does not return a pointer.

==========two structures with the same fields will not be consideredidentical in Go if their fields are not in exactly the same order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL