Skip to content

Commit

Permalink
Update root.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 4, 2021
1 parent 99f2bef commit e208d95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ func init() {
}


// HasBytesInBetween Returns empty string if no start string found
func HasBytesInBetween(value, start, end []byte) (found bool, startIndex int, endIndex int) {
s := bytes.Index(value, start)

Expand All @@ -235,7 +234,7 @@ func HasBytesInBetween(value, start, end []byte) (found bool, startIndex int, en
return true, s, e
}

// ReplaceBytesInBetween Returns a string after replacements

func ReplaceBytesInBetween(value []byte, startIndex int, endIndex int, new []byte) []byte {
t := make([]byte, len(value))

Expand Down

0 comments on commit e208d95

Please sign in to comment.