Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 6314750

Browse files
author
Holger Lösken
committed
Remove main, use tests to check
1 parent 661dd12 commit 6314750

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/go/t1/s1.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package main
22

33
import (
4-
"fmt"
5-
"os"
64
"strconv"
75
"strings"
86
)
@@ -31,21 +29,3 @@ func Maskify(cc string) string {
3129

3230
return strings.Join(masked, "")
3331
}
34-
35-
func main() {
36-
cc := ""
37-
38-
if len(os.Args) > 1 {
39-
cc = os.Args[1]
40-
} else {
41-
os.Exit(0)
42-
}
43-
44-
// Do no mask if cc less than 6 or empty string
45-
if len(cc) < 6 {
46-
fmt.Println(cc)
47-
os.Exit(0)
48-
}
49-
50-
fmt.Printf(Maskify(cc))
51-
}

0 commit comments

Comments
 (0)