From 98a256e57f2df1b10b7cd75808bee68d8abd1dcd Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 5 Apr 2023 23:04:04 +0700 Subject: lib/strings: merge lib/parser here The first idea of parser is to provide generic parser for both bytes and string. After we introduce lib/parser there is not much changes to that package. Also, since we create another Parser in lib/bytes that accept and return token as []byte, the lib/parser is not unique anymore. The following function/methods changes to minimize conflict in the future, * Lines become LinesOfFile * New become NewParser * Open become OpenForParser * Token become Read * TokenEscaped become ReadEscaped * TokenTrimSpace become ReadNoSpace --- lib/parser/parser.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/parser/parser.go') diff --git a/lib/parser/parser.go b/lib/parser/parser.go index 7c084d6d..3562d9c2 100644 --- a/lib/parser/parser.go +++ b/lib/parser/parser.go @@ -3,6 +3,9 @@ // license that can be found in the LICENSE file. // Package parser provide a common text parser, using delimiters. +// +// DEPRECATED: this package has been merged with package lib/strings and will +// be removed in the next six release v0.51.0. package parser import ( -- cgit v1.3-5-g9baa