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 0015b77cef9281788769bdddd4f980e5e0b4e1c7
Showing with 0 additions and 55 deletions.
  1. +0 −18 trim/trim.go
  2. +0 −37 trim/trim_test.go

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 0015b77

Please sign in to comment.