order

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package order provides helper function to parse the order file in https://github.com/toptal/gitignore

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadOrder

func ReadOrder(path string) (map[string]int, error)

ReadOrder parses the order find in the provided path and returns the order of each items in the file. For the following content file

# A comment
go

elm

We should get the following

"go": 0
"elm": 1

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL