From db509b48a15ed753f1cf4f311e5220e67e3de85d Mon Sep 17 00:00:00 2001 From: mochaaP Date: Mon, 2 May 2022 22:34:05 +0800 Subject: [PATCH] chore: add ldflags -s -w --- .editorconfig | 21 +-------------------- .goreleaser.yml | 2 ++ .vscode/launch.json | 17 ----------------- 3 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 .vscode/launch.json diff --git a/.editorconfig b/.editorconfig index 53018ba52..0eb62f2ff 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,4 @@ -# http://editorconfig.org - +# https://editorconfig.org root = true [*] @@ -7,23 +6,5 @@ charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true - -[*.go] -indent_style = tab -indent_size = 2 - -[Dockerfile] indent_style = tab indent_size = 4 - -[Makefile] -indent_style = tab -indent_size = 4 - -[.travis.yml] -indent_style = space -indent_size = 2 - -[*.json] -indent_style = space -indent_size = 2 diff --git a/.goreleaser.yml b/.goreleaser.yml index 7df2c5941..8da249a7a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,6 +2,8 @@ builds: - env: [CGO_ENABLED=0] flags: - -trimpath + ldflags: + - -s -w goos: - linux - windows diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index c20cb3f0c..000000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/main.go", - "env": {}, - "args": [] - } - ] -} \ No newline at end of file