Skip to content

Commit

Permalink
feat: added container creation in go
Browse files Browse the repository at this point in the history
  • Loading branch information
Molaryy committed Oct 19, 2023
1 parent 90f199b commit dff267f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions create-container/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module c-container

go 1.21.0
26 changes: 26 additions & 0 deletions create-container/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package main

import (
"fmt"
"os"
)

func runContainer() {
fmt.Println("Sup")
}

func main() {
var cmds [1] []string = ["tes"]


if len(os.Args) < 2 {
panic("Provide at leas 1 argument")
}
fmt.Println(len(os.Args))
switch os.Args[1] {
case "run":
runContainer()
default:
panic("Provide at leas 1 argument")
}
}

0 comments on commit dff267f

Please sign in to comment.