patchutils

package module
v0.0.0-...-7f4ae67 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: LGPL-2.1-or-later Imports: 2 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineDiff

func CombineDiff(filepathA, filepathB string) (io.Reader, error)

CombineDiff ...

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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