txtar: promote from internal

Rather than copying this package to another repository, let's promote
this one out of internal.

Change-Id: I6f9cc1ada1577a720905271f7471c3afe05a2b41
Reviewed-on: https://go-review.googlesource.com/c/tools/+/207905
Reviewed-by: Ian Cottrell <iancottrell@google.com>
diff --git a/internal/imports/mod_test.go b/internal/imports/mod_test.go
index dcb8818..57c6c59 100644
--- a/internal/imports/mod_test.go
+++ b/internal/imports/mod_test.go
@@ -19,7 +19,7 @@
 	"golang.org/x/tools/internal/gopathwalk"
 	"golang.org/x/tools/internal/module"
 	"golang.org/x/tools/internal/testenv"
-	"golang.org/x/tools/internal/txtar"
+	"golang.org/x/tools/txtar"
 )
 
 // Tests that we can find packages in the stdlib.
diff --git a/internal/lsp/tests/tests.go b/internal/lsp/tests/tests.go
index e63d4e8..ba3aac0 100644
--- a/internal/lsp/tests/tests.go
+++ b/internal/lsp/tests/tests.go
@@ -26,7 +26,7 @@
 	"golang.org/x/tools/internal/lsp/protocol"
 	"golang.org/x/tools/internal/lsp/source"
 	"golang.org/x/tools/internal/span"
-	"golang.org/x/tools/internal/txtar"
+	"golang.org/x/tools/txtar"
 )
 
 const (
diff --git a/internal/txtar/archive.go b/txtar/archive.go
similarity index 100%
rename from internal/txtar/archive.go
rename to txtar/archive.go
diff --git a/internal/txtar/archive_test.go b/txtar/archive_test.go
similarity index 100%
rename from internal/txtar/archive_test.go
rename to txtar/archive_test.go