Parse Procfiles in go without yaml
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MIT-LICENSE
README.md
procfile.go
procfile_test.go

README.md

procfile

A go package for parsing Procfile entries.

Install

go get github.com/hecticjeff/procfile

Usage

package main

import (
    "fmt"
    "github.com/hecticjeff/procfile"
)

func main() {
    proclist := procfile.Parse("web: bundle exec rackup\nworker: rake resque:work")
    for name, process := range proclist {
        fmt.Println(name, "command", process.Command)
        fmt.Println(name, "arguments", process.Arguments)
    }
}

Copyright (c) Chris Mytton