commit c7514d60b86ee5a486ffb64ba46c362e59ea4408 Author: go <> Date: Sat Dec 30 00:37:59 2023 +0100 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..46e08cf --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76ac7de --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..62f836f --- /dev/null +++ b/.golangci.yml @@ -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 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c7ffc1a --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +"THE BEER-WARE LICENSE" (Revision 42): 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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..629b3f4 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..285b564 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# firecracker-netns application + +run firecracker in netns namespace + +documentation [docs](./docs) diff --git a/cmd/.gitkeep b/cmd/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/cmd/main.go b/cmd/main.go new file mode 100644 index 0000000..dcec099 --- /dev/null +++ b/cmd/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello world !") +} diff --git a/doc.go b/doc.go new file mode 100644 index 0000000..fdb6b5c --- /dev/null +++ b/doc.go @@ -0,0 +1,2 @@ +// Package gotemplate is a sample project for bootstrapping golang project. +package gotemplate diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..d09deef --- /dev/null +++ b/docs/README.md @@ -0,0 +1,9 @@ +# documentations + +local : + +linter required + +```shell +$ brew install golangci-lint +``` diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..aba5c13 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module antoine-roux.tk/projects/go/firecracker-netns + +go 1.21.5 diff --git a/internal/.gitkeep b/internal/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/out/.gitkeep b/out/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/pkg/.gitkeep b/pkg/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..02ae055 --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true +}