Skip to content

Commit

Permalink
ci: dev [-u:2023-09-17]
Browse files Browse the repository at this point in the history
  • Loading branch information
ChicomeMX7 committed Sep 17, 2023
1 parent d68bb6b commit 2eb506c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
18 changes: 18 additions & 0 deletions cleanup.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package crud_module

var restricted_words = []string{
"api", "apis", "root", "admin", "v1", "v2",
}

func isWordRestricted(element string) bool {
return Contains(element)
}

func Contains(name string) bool {
for _, value := range restricted_words {
if value == name {
return true
}
}
return false
}
2 changes: 0 additions & 2 deletions crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
)

var Version versionType = "0.0.1"

func Log(vers string) {
fmt.Println("[DEBUG] " + vers)
}
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
9 changes: 9 additions & 0 deletions logger.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package crud_module

import (
"fmt"
)

func LogVersion() {
fmt.Println("@mecuate/crud_module.package.version: " + Version)
}
3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package crud_module

var Version versionType = "0.0.1"

0 comments on commit 2eb506c

Please sign in to comment.