-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/usability #2
Conversation
|
||
func GetConverter(name string) Converter { | ||
c := converters[name] // lol go | ||
return c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
y u 2 line
} else { | ||
log.Printf("Warning: No known delimeter for %s, defaulting to Comma", cfg.delimeter) | ||
} | ||
if comma, ok := delimeters[cfg.delimeter]; ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma
is a misnomer, should be called separator
or delimiter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error :)
Makem all the time
On Aug 21, 2016 11:24 PM, "hydroflame" notifications@github.com wrote:
In sqltocsv.go
#2 (comment):@@ -45,13 +45,10 @@ func main() {
}csvWriter := csv.NewWriter(os.Stdout)
- // If I ever need to support more than tabs/commas, this needs improving
- if cfg.delimeter != "comma" {
if comma, ok := delimeters[cfg.delimeter]; ok {
csvWriter.Comma = comma
} else {
log.Printf("Warning: No known delimeter for %s, defaulting to Comma", cfg.delimeter)
}
- if comma, ok := delimeters[cfg.delimeter]; ok {
this is a misnomer, should be called like "separator" or "delimiter"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/StabbyCutyou/sqltocsv/pull/2/files/2bbc08f188d504576a64a14140fa56102449d13b..003c2bb0891131ca1675205e7eb2d502f4923679#r75614014,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABdTKrl3DbmEekt4JHyxY_TJWLWUNkP_ks5qiRZQgaJpZM4JljSO
.
No description provided.