[agent-go] [Bastion] - install docker; docker-compose; install harbor

This commit is contained in:
zeaslity
2024-04-18 09:46:26 +08:00
parent dacdb6588e
commit abe83b68e9
10 changed files with 554 additions and 99 deletions

View File

@@ -19,3 +19,15 @@ func TestNewTrie(t *testing.T) {
fmt.Printf("The closest word to '%s' is '%s'\n", prefix, closest)
}
}
func TestDp(t *testing.T) {
words := []string{"Apple", "Apricot", "Apprentice", "Application", "Docker-Compose", "Docker-Compose-File", "Docker-Compose-File-V2", "Docker-Compose-File-V3", "Docker-Compose-File-V4", "Docker-Compose-File-V5", "Docker-Compose-File-V6", "Docker-Co", "Install-Docker"}
prefix := "Install"
closest, err := FindClosestWordDp(words, prefix)
if err != nil {
fmt.Println(err)
} else {
fmt.Printf("The closest word to '%s' is '%s'\n", prefix, closest)
}
}