Commit b26e5d45 authored by Arief Setiyo Nugroho's avatar Arief Setiyo Nugroho
Browse files

update structure

parent 6c63e533
Pipeline #1063 passed with stages
in 2 minutes and 2 seconds
Showing with 27 additions and 16 deletions
+27 -16
newrelic_agent.log
.vscode/configurationCache.log
.vscode/dryrun.log
.vscode/settings.json
.vscode/targets.log
......@@ -37,7 +37,7 @@
# or
go run ./day3/car.go ./day3/main.go -c 10 -d 150
go run ./day3/main.go -c 10 -d 150
```
- Test
......@@ -55,7 +55,7 @@
# or
go run ./day4/race.go ./day4/car.go ./day4/main.go -c 15 -d 150 -w 5
go run ./day4/main.go -c 15 -d 150 -w 5
```
- Test
......
package main
package lib
import "github.com/eaciit/toolkit"
......
package main_test
package lib_test
import (
"testing"
// "github.com/stretchr/testify/assert"
. "go-sinau/day1"
. "go-sinau/day1/lib"
"github.com/stretchr/testify/assert"
)
......
package main
import "fmt"
import (
"fmt"
. "go-sinau/day1/lib"
)
var (
f32 float32
......
package main
package lib
import (
"math"
......
package main_test
package lib_test
import (
. "go-sinau/day2"
. "go-sinau/day2/lib"
"testing"
"github.com/stretchr/testify/assert"
......
package main
import "fmt"
import (
"fmt"
. "go-sinau/day2/lib"
)
func main() {
txt := []string{"Hello", "World"}
......
package main
package lib
import (
"fmt"
......
package main_test
package lib_test
import (
. "go-sinau/day3"
. "go-sinau/day3/lib"
"testing"
"github.com/logrusorgru/aurora"
......
......@@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
. "go-sinau/day3/lib"
"time"
"github.com/logrusorgru/aurora"
......
day1.run:
go run ./day1/vars.go ./day1/main.go
go run ./day1/main.go
day1.test:
go test ./day1/... -v -cover
day2.run:
go run ./day2/word.go ./day2/main.go
go run ./day2/main.go
day2.test:
go test ./day2/... -v -cover
day3.run:
go run ./day3/car.go ./day3/main.go
go run ./day3/main.go
day3.test:
go test ./day3/... -v -cover
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment