Debian Codegraph @

/

debian golang-mvdan-editorconfig 0.2.0+git20240816.eab549b-2debian golang-mvdan-editorconfig-dev gomod mvdan.cc/editorconfig cdebiangogoinimakefilemarkdownshellyaml 24 files · 194 symbols
View dependency graph

Depends on

README (full)

editorconfig

GoDoc

A small package to parse and use EditorConfig files. Currently passes all of the official test cases, which are run via go test.

props, err := editorconfig.Find("path/to/file.go")
if err != nil { ... }

// Print all the properties
fmt.Println(props)

// Query specific ones
fmt.Println(props.Get("indent_style"))
fmt.Println(props.IndentSize())

Note that an official library exists for Go. This alternative implementation started with a different design:

  • Specialised INI parser, for full compatibility with the spec
  • Ability to cache parsing files and compiling pattern matches
  • Storing and querying all properties equally
  • Minimising pointers and maps to store data
dir .github/
dir _sample/
dir core-test/
dir debian/
file .gitmodules
file CMakeLists.txt
file LICENSE
file README.md
file cmd_test.go
file editorconfig.go
file editorconfig_test.go
file example_test.go
file go.mod
file go.sum
file pattern_bundle.go