Initial release

This commit is contained in:
laurentu committed 2022-03-21 13:08:12 +00:00
1 parent 1aa66ec832
commit 3ccd531ddc
3 files changed
+28 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> <copyright holders>
Copyright (c) <2022> <Laurent ULRICH (laurentu@gmail.com)>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+24
View File
@@ -0,0 +1,24 @@
package csvparser
type EncloserId int
const (
DoubleQuotes EncloserId = iota
SingleQuotes
RoundBrackets
SquareBrackets
)
type CsvParser struct {
enclosers []EncloserId
delimiter rune
}
func (parser *CsvParser) Init() {
parser.enclosers = append(parser.enclosers, DoubleQuotes, SquareBrackets)
parser.delimiter = ' '
}
func (parser *CsvParser) Parse(line string) {
}
+3
View File
@@ -0,0 +1,3 @@
module fruit.ovh/csv-parser
go 1.17