Skip to content
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

Add duplicate removal in Go #3835

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add duplicate removal in Go #3835

wants to merge 1 commit into from

Conversation

IvanFon
Copy link
Contributor

@IvanFon IvanFon commented Oct 21, 2018

Adds duplicate removal string algorithm in Go.

@@ -0,0 +1,30 @@
package main

import (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problems here:

  • Gofmt your code.
  • Fix naming conventions.

"strings"
)

var re, _ = regexp.Compile("[^a-z]")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to either not make this global or make it constant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants