1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

增加 editorconfig 配置

This commit is contained in:
chai2010 2018-01-03 07:50:04 +08:00
parent 3033a075db
commit 7a095493b3

29
.editorconfig Normal file
View File

@ -0,0 +1,29 @@
# Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a Apache
# license that can be found in the LICENSE file.
# http://editorconfig.org/
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*]
indent_style = tab
indent_size = 4
tab_width = 4
[*.{go,ts,js,c,cc,cpp,h,py,proto}]
charset = utf-8
indent_style = tab
tab_width = 4
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2