Permalink
Browse files

trim: Delete unhelpful package.

This package is not helpful and no longer used by any known supported
importers. It's simpler and more readable to use strings.TrimSuffix and
strings.TrimPrefix, since package strings is in the standard library.

Any unknown importers of the trim package can be automatically rewritten
to use package strings instead with:

	gofmt -w -r 'trim.LastNewline(s) -> strings.TrimSuffix(s, "\n")' .
	gofmt -w -r 'trim.FirstSpace(s) -> strings.TrimPrefix(s, " ")' .
	goimports -w .
  • Loading branch information...
dmitshur committed Dec 15, 2018
1 parent 9140433 commit 0143a8f55f045ead806ab5306286c07892767abd
Showing with 0 additions and 56 deletions.
  1. +0 −1 README.md
  2. +0 −18 trim/trim.go
  3. +0 −37 trim/trim_test.go
@@ -37,7 +37,6 @@ Directories
| [reflectsource](https://godoc.org/github.com/shurcooL/go/reflectsource) | Package sourcereflect implements run-time source reflection, allowing a program to look up string representation of objects from the underlying .go source files. |
| [timeutil](https://godoc.org/github.com/shurcooL/go/timeutil) | Package timeutil provides a func for getting start of week of given time. |
| [trash](https://godoc.org/github.com/shurcooL/go/trash) | Package trash implements functionality to move files into trash. |
| [trim](https://godoc.org/github.com/shurcooL/go/trim) | Package trim contains helpers for trimming strings. |
| [vfs/godocfs/godocfs](https://godoc.org/github.com/shurcooL/go/vfs/godocfs/godocfs) | Package godocfs implements vfs.FileSystem using a http.FileSystem. |
| [vfs/godocfs/html/vfstemplate](https://godoc.org/github.com/shurcooL/go/vfs/godocfs/html/vfstemplate) | Package vfstemplate offers html/template helpers that use vfs.FileSystem. |
| [vfs/godocfs/path/vfspath](https://godoc.org/github.com/shurcooL/go/vfs/godocfs/path/vfspath) | Package vfspath implements utility routines for manipulating virtual file system paths. |

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 0143a8f

Please sign in to comment.