gitlab.com/postgres-ai/database-lab/v3@v3.0.3/pkg/util/testing.go (about) 1 /* 2 2019 © Postgres.ai 3 */ 4 5 // Package util provides utility functions. Testing related. 6 package util 7 8 import ( 9 "github.com/sergi/go-diff/diffmatchpatch" 10 ) 11 12 func diff(a string, b string) string { 13 dmp := diffmatchpatch.New() 14 diffs := dmp.DiffMain(a, b, false) 15 16 return dmp.DiffPrettyText(diffs) 17 }