You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/RageCage64/multilinediff"
|
|
)
|
|
|
|
func main() {
|
|
a := `a
|
|
b
|
|
c
|
|
diff`
|
|
b := `a b
|
|
c
|
|
f
|
|
f
|
|
f
|
|
diff`
|
|
diff, count := multilinediff.Diff(a, b, "\n")
|
|
fmt.Println(count)
|
|
fmt.Println("--------")
|
|
fmt.Println(diff)
|
|
}
|