View player_test.go
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 |
View packer-edit.go
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" |
View aws-region-names.go
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 | |
} |
View inline_struct.go
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"` |
View ha.go
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++ { |
View no-global-var.go
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) | |
} |
View .gitlan-ci.yml
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: |
View gitlan-runner.toml
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 |
View main.go
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 |
View Dockerfile
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