This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math/rand" | |
"testing" | |
) | |
type Player struct { | |
ID int | |
health int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"os/exec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type AwsRegion struct { | |
Region string | |
Location string | |
Code string | |
A1 string | |
Latitude string | |
Longitude string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"testing" | |
) | |
type PD2 struct { | |
Property1 int `json:"property1"` | |
Property2 int `json:"property2"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "testing" | |
var testmk11 = []string{"scorpion", "sub-zero", "raiden", "kano", "kitana"} | |
func ifloop() { | |
for i := 0; i < len(testmk11); i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
var levels = []string{"LVL1","LVL2","LVL3"} | |
func main(){ | |
fmt.Println(levels) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker | |
services: | |
- docker:dind | |
stages: | |
- gosec | |
- build | |
variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[runners]] | |
name = "docker-runner" | |
url = "https://enter-yor-gitlab-hostname.com/" | |
token = "Nd3KKoj2N-x" | |
executor = "docker" | |
[runners.docker] | |
tls_verify = false | |
image = "docker" | |
privileged = true | |
disable_entrypoint_overwrite = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/md5" | |
"fmt" | |
"net/http" | |
) | |
var Version string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.11.6 as builder | |
ARG VERSION | |
ENV CGO_ENABLED=0 | |
WORKDIR $GOPATH/src/md5go | |
COPY . . | |
RUN go install -a --installsuffix cgo -ldflags "-X main.Version=${VERSION}" ./... |
NewerOlder