Movatterモバイル変換


[0]ホーム

URL:


lcs

package
v0.37.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2025 License:BSD-3-ClauseImports:3Imported by:0

Details

Repository

cs.opensource.google/go/x/tools

Links

Documentation

Overview

package lcs contains code to find longest-common-subsequences(and diffs)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeDiff

type Diff struct {Start, Endint// offsets of portion to delete in AReplStart, ReplEndint// offset of replacement text in B}

A Diff is a replacement of a portion of A by a portion of B.

funcDiffBytesadded inv0.5.0

func DiffBytes(a, b []byte) []Diff

DiffBytes returns the differences between two byte sequences.It does not respect rune boundaries.

funcDiffRunesadded inv0.5.0

func DiffRunes(a, b []rune) []Diff

DiffRunes returns the differences between two rune sequences.

funcDiffStringsadded inv0.5.0

func DiffStrings(a, bstring) []Diff

DiffStrings returns the differences between two strings.It does not respect rune boundaries.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp