In Go, the common way to create pointers is by using the built-in new function or the address-of operator &.
For example, if you want to create a pointer to an integer, you can do the following:
govar a int = 58 var p *int = &a
Here, a is an integer variable, and p is a pointer to an integer that refers to the memory address of variable a.
Another approach is to use the new function, which allocates memory for a specified type and returns a pointer to it. For example:
gop := new(int) *p = 58
In this case, new(int) creates a pointer to an integer initialized to 0. Then, by dereferencing the pointer with *p, we set its value to 58.