MCPcopy Create free account
hub / github.com/sergi/go-diff / String

Method String

diffmatchpatch/operation_string.go:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9var _Operation_index = [...]uint8{0, 6, 11, 17}
10
11func (i Operation) String() string {
12 i -= -1
13 if i < 0 || i >= Operation(len(_Operation_index)-1) {
14 return fmt.Sprintf("Operation(%d)", i+-1)
15 }
16 return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
17}

Callers

nothing calls this directly

Calls 1

OperationTypeAlias · 0.85

Tested by

no test coverage detected