Skip to content

Commit

Permalink
scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
meadowingc committed Feb 12, 2024
1 parent 4943fdd commit f26c295
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"

[build]
args_bin = []
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = false

[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"

[log]
main_only = false
time = false

[misc]
clean_on_exit = false

[screen]
clear_on_rebuild = false
keep_scroll = true
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go - Fido",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye",
"postCpost_create.shreateCommand": "bash .devcontainer/",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
4 changes: 4 additions & 0 deletions .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

go install github.com/go-task/task/v3/cmd/task@latest
go install github.com/cosmtrek/air@latest
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# fido
# fido 🐶

WIP: Website to check your website for broken links!
Fido is a website to check your sites for broken links.

codeberg.org/meadowingc/fido
38 changes: 38 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# https://taskfile.dev

version: '3'

tasks:
default:
- task --list-all

lint:
- go run github.com/nishanths/exhaustive/cmd/exhaustive@latest ./...
- go run honnef.co/go/tools/cmd/staticcheck@latest ./...
- go vet ./...

release:
deps: [tidy, lint, test, fmt]
cmds:
- go build -tags="release"

tidy:
- go mod tidy -v

update-deps:
cmds:
- go get -u
- go clean -modcache
- task tidy

test:
- go test -v ./...

run:
- go run .

dev:
- air -c .air.toml

fmt:
- go fmt ./...

0 comments on commit f26c295

Please sign in to comment.