Initial commit

This commit is contained in:
go 2023-12-30 00:37:59 +01:00 committed by RouxAntoine
commit c7514d60b8
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
15 changed files with 118 additions and 0 deletions

22
.editorconfig Normal file
View File

@ -0,0 +1,22 @@
# documentation https://editorconfig.org/
root = true
[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
max_line_length = 130
indent_style = space
trim_trailing_whitespace = true
tab_width = 2
indent_size = 2
[{*.java,*.js}]
indent_size = 4
ij_continuation_indent_size = 4
[{*.xml,*.html}]
indent_size = 4
[Makefile]
indent_style = tab

28
.gitignore vendored Normal file
View File

@ -0,0 +1,28 @@
# ---> JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/
*.iml
# CMake
cmake-build-*/
# File-based project format
*.iws
# IntelliJ
out/*
!**/.gitkeep
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

26
.golangci.yml Normal file
View File

@ -0,0 +1,26 @@
linters:
enable:
- errcheck
- errorlint
- gocritic
- gosec
- gosimple
- govet
- gci
- misspell
- nonamedreturns
- staticcheck
- unconvert
- unparam
- unused
- whitespace
linters-settings:
gci:
sections:
- standard
- default
- prefix(antoine-roux.tk/projects/go)
run:
timeout: 5m

1
LICENSE Normal file
View File

@ -0,0 +1 @@
"THE BEER-WARE LICENSE" (Revision 42): <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
.PHONY: build run
build:
go build -o ./out/main cmd/main.go
run:
@chmod +x ./out/main
./out/main
ci:
golangci-lint run --fix

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# firecracker-netns application
run firecracker in netns namespace
documentation [docs](./docs)

0
cmd/.gitkeep Normal file
View File

7
cmd/main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello world !")
}

2
doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package gotemplate is a sample project for bootstrapping golang project.
package gotemplate

9
docs/README.md Normal file
View File

@ -0,0 +1,9 @@
# documentations
local :
linter required
```shell
$ brew install golangci-lint
```

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module antoine-roux.tk/projects/go/firecracker-netns
go 1.21.5

0
internal/.gitkeep Normal file
View File

0
out/.gitkeep Normal file
View File

0
pkg/.gitkeep Normal file
View File

4
renovate.json Normal file
View File

@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true
}