Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aryann/difflib
/ functions
Functions
14 in github.com/aryann/difflib
⨍
Functions
14
◇
Types & classes
2
↓ 2 callers
Function
Diff
Diff returns the result of diffing the seq1 and seq2.
difflib.go:52
↓ 2 callers
Function
fileToLines
filesToLines takes a path to a file and returns a string array of the lines in the file. Any HTML in the file is escaped.
difflib_server/difflib_demo.go:94
↓ 2 callers
Function
longestCommonSubsequenceMatrix
longestCommonSubsequenceMatrix returns the table that results from applying the dynamic programming approach for finding the longest common subsequenc
difflib.go:142
↓ 2 callers
Function
numEqualStartAndEndElements
numEqualStartAndEndElements returns the number of elements a and b have in common from the beginning and from the end. If a and b are equal, start wil
difflib.go:116
↓ 1 callers
Function
HTMLDiff
HTMLDiff returns the results of diffing seq1 and seq2 as an HTML string. The resulting HTML is a table without the opening and closing table tags. Eac
difflib.go:83
↓ 1 callers
Method
String
String returns a string representation for DeltaType.
difflib.go:28
↓ 1 callers
Function
compute
compute is the unexported helper for Diff that returns the results of diffing left and right.
difflib.go:159
↓ 1 callers
Function
diffHandler
diffHandler returns an http.HandlerFunc that serves the diff of the two given files.
difflib_server/difflib_demo.go:77
↓ 1 callers
Function
intMatrix
intMatrix returns a 2-dimensional slice of ints with the given number of rows and columns.
difflib.go:131
Method
String
String returns a string representation of d. The string is a concatenation of the delta type and the payload.
difflib.go:47
Function
TestDiff
(t *testing.T)
difflib_test.go:211
Function
TestLongestCommonSubsequenceMatrix
(t *testing.T)
difflib_test.go:22
Function
TestNumEqualStartAndEndElements
(t *testing.T)
difflib_test.go:50
Function
main
()
difflib_server/difflib_demo.go:62