go_three_way_merge

package module
v0.0.0-...-8a77db9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: MIT Imports: 3 Imported by: 0

README

go-three-way-merge

GoDoc Build Status Coverage Status Go Report Card

A library performing three-way merge on unstructured data (mostly texts). For more information about three-way merging, check information here.

Documentation

Overview

Package go_three_way_merge implements an intuitive three way merging algorithm. See https://en.wikipedia.org/wiki/Merge_(version_control)#Three-way_merge for more detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(base, versionA, versionB string) (string, bool, error)

Merge two versions of the same base file. Returns the resulting merged file if the boolean is true. If the boolean is false, there is either a merge-conflict or an error. In theory, this algorithm should never return an error (if so, feel free to open an issue).

func MergeRunes

func MergeRunes(base, versionA, versionB []rune) (string, bool, error)

MergeRunes provides the same functionality as `Merge` with runes instead of string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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