diff options
| author | Shulhan <ms@kilabit.info> | 2023-04-05 23:04:04 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-04-05 23:07:55 +0700 |
| commit | 98a256e57f2df1b10b7cd75808bee68d8abd1dcd (patch) | |
| tree | 606c360e5d74388dc7207b912d91c6c88a1b5f70 /lib/strings/testdata | |
| parent | 144ceef8e29f8780c84bc5ae2589dab3895c5ee6 (diff) | |
| download | pakakeh.go-98a256e57f2df1b10b7cd75808bee68d8abd1dcd.tar.xz | |
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
Diffstat (limited to 'lib/strings/testdata')
| -rw-r--r-- | lib/strings/testdata/parser/open_test.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/strings/testdata/parser/open_test.txt b/lib/strings/testdata/parser/open_test.txt new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/lib/strings/testdata/parser/open_test.txt @@ -0,0 +1 @@ +test |
