mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat(证书): 优化签发及部署
This commit is contained in:
@@ -30,12 +30,3 @@ func Camel(s string) string {
|
||||
func LowerCamel(s string) string {
|
||||
return strcase.ToLowerCamel(s)
|
||||
}
|
||||
|
||||
func ContainsString(arr []string, str string) bool {
|
||||
for _, s := range arr {
|
||||
if s == str {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -38,8 +38,3 @@ func (s *StrTestSuite) TestLowerCamel() {
|
||||
s.Equal("topicComment", LowerCamel("topic_comment"))
|
||||
s.Equal("topicComment", LowerCamel("TopicComment"))
|
||||
}
|
||||
|
||||
func (s *StrTestSuite) TestContainsString() {
|
||||
s.True(ContainsString([]string{"a", "b", "c"}, "a"))
|
||||
s.False(ContainsString([]string{"a", "b", "c"}, "d"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user