Skip to content

Commit

Permalink
trim: Delete unhelpful package.
Browse files Browse the repository at this point in the history
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 0015b77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
18 changes: 0 additions & 18 deletions trim/trim.go

This file was deleted.

37 changes: 0 additions & 37 deletions trim/trim_test.go

This file was deleted.

0 comments on commit 0015b77

Please sign in to comment.