Skip to content

feature: contains prefix#80

Merged
zipzap11 merged 4 commits into
masterfrom
feature/contains-prefix
Jun 24, 2026
Merged

feature: contains prefix#80
zipzap11 merged 4 commits into
masterfrom
feature/contains-prefix

Conversation

@zipzap11

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread slice.go
// ContainsPrefix tells whether a slice of string contains prefix of in.
func ContainsPrefix(prefixes []string, in string) bool {
for _, pref := range prefixes {
if strings.HasPrefix(in, pref) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

case sensitive ga ini kink?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tambahin di unit testnya aja

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

case sensitip yak

@zipzap11
zipzap11 merged commit 2308a93 into master Jun 24, 2026
1 check passed
@zhenqianz
zhenqianz deleted the feature/contains-prefix branch July 13, 2026 02:45
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.

4 participants