Include in the imports:
import "regexp"
ZigZag-Encoding | |
--------------- | |
Maps negative values to positive values while going back and | |
forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...) | |
(i >> bitlength-1) ^ (i << 1) | |
with "i" being the number to be encoded, "^" being | |
XOR-operation and ">>" would be arithemtic shifting-operation |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" | |
"math/big" |
package dummy | |
import ( | |
"fmt" | |
"github.com/go-resty/resty/v2" | |
) | |
type XMLDummy struct { | |
Name string `xml:"Name"` | |
} |
create project and management with go modules
cd $GOPATH
mkdir -p {src,bin,pkg}
cd src
mkdir -p github.com/username