Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

opennetsys/patchutils-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-patchutils

Go bindings for patchutils

License Build Status Go Report Card GoDoc

Install

go get -u github.com/c3systems/go-patchutils

Usage

Currently only supports the combinediff command from patchutils.

package main

import (
	"io"
	"log"
	"os"

	"github.com/c3systems/go-patchutils"
)

func main() {
	out, err := patchutils.CombineDiff("file1.patch", "file2.patch")
	if err != nil {
		log.Fatal(err)
	}

	io.Copy(os.Stdout, out)
}

Test

make test

License

go-patchutils and patchutils are licensed under GNU GPL V2.