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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
) |
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 can be used to see how a font looks in your IDE. | |
// Preference: https://github.com/gaplo917/Ligatured-Hack | |
// VSCode Settings: https://gist.github.com/josephspurrier/15a74871d65926c7415b55fe4b8d2946#file-settings-json | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) |
View .air.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
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format | |
# Working directory | |
# . or absolute path, please note that the directories following must be under root. | |
root = "." | |
tmp_dir = "tmp" | |
[build] | |
# Just plain old shell command. You could use `make` as well. | |
cmd = "go build -o ./tmp/main main.go" |
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 public.ecr.aws/lambda/go:1 | |
# Copy function code | |
COPY hello ${LAMBDA_TASK_ROOT} | |
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | |
CMD [ "hello" ] |
View controls.stories.ts
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
import m from "mithril"; | |
export default { | |
title: "Example/Controls", | |
}; | |
interface Args { | |
list: number[]; | |
toggle: boolean; | |
numberBox: number; |
View .env
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
APP_VERSION=1.0 | |
MYSQL_CONTAINER=mysql:5.6 | |
MYSQL_ROOT_PASSWORD=password | |
MYSQL_HOST=db |
View gitlab_private_api.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 is an example of how to use the GitLab private API. | |
// Related: https://gitlab.com/gitlab-org/gitlab-ce/issues/43674 | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
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 "fmt" | |
type foo struct{} | |
func (f foo) Start() { | |
fmt.Println("Foo Started") | |
} |
View healthcheck.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 ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func main() { | |
mux := http.NewServeMux() |
View hotreload.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" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"os/exec" |
NewerOlder