Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arief Setiyo Nugroho
Golang Sinau
Commits
b26e5d45
Commit
b26e5d45
authored
3 years ago
by
Arief Setiyo Nugroho
Browse files
Options
Download
Email Patches
Plain Diff
update structure
parent
6c63e533
Pipeline
#1063
passed with stages
in 2 minutes and 2 seconds
Changes
12
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
.gitignore
+4
-0
.gitignore
README.md
+2
-2
README.md
day1/lib/vars.go
+1
-1
day1/lib/vars.go
day1/lib/vars_test.go
+2
-2
day1/lib/vars_test.go
day1/main.go
+4
-1
day1/main.go
day2/lib/word.go
+1
-1
day2/lib/word.go
day2/lib/word_test.go
+2
-2
day2/lib/word_test.go
day2/main.go
+4
-1
day2/main.go
day3/lib/car.go
+1
-1
day3/lib/car.go
day3/lib/car_test.go
+2
-2
day3/lib/car_test.go
day3/main.go
+1
-0
day3/main.go
makefile
+3
-3
makefile
with
27 additions
and
16 deletions
+27
-16
.gitignore
+
4
-
0
View file @
b26e5d45
newrelic_agent.log
.vscode/configurationCache.log
.vscode/dryrun.log
.vscode/settings.json
.vscode/targets.log
This diff is collapsed.
Click to expand it.
README.md
+
2
-
2
View file @
b26e5d45
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
day1/vars.go
→
day1/
lib/
vars.go
+
1
-
1
View file @
b26e5d45
package
main
package
lib
import
"github.com/eaciit/toolkit"
...
...
This diff is collapsed.
Click to expand it.
day1/vars_test.go
→
day1/
lib/
vars_test.go
+
2
-
2
View file @
b26e5d45
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"
)
...
...
This diff is collapsed.
Click to expand it.
day1/main.go
+
4
-
1
View file @
b26e5d45
package
main
import
"fmt"
import
(
"fmt"
.
"go-sinau/day1/lib"
)
var
(
f32
float32
...
...
This diff is collapsed.
Click to expand it.
day2/word.go
→
day2/
lib/
word.go
+
1
-
1
View file @
b26e5d45
package
main
package
lib
import
(
"math"
...
...
This diff is collapsed.
Click to expand it.
day2/word_test.go
→
day2/
lib/
word_test.go
+
2
-
2
View file @
b26e5d45
package
main
_test
package
lib
_test
import
(
.
"go-sinau/day2"
.
"go-sinau/day2
/lib
"
"testing"
"github.com/stretchr/testify/assert"
...
...
This diff is collapsed.
Click to expand it.
day2/main.go
+
4
-
1
View file @
b26e5d45
package
main
import
"fmt"
import
(
"fmt"
.
"go-sinau/day2/lib"
)
func
main
()
{
txt
:=
[]
string
{
"Hello"
,
"World"
}
...
...
This diff is collapsed.
Click to expand it.
day3/car.go
→
day3/
lib/
car.go
+
1
-
1
View file @
b26e5d45
package
main
package
lib
import
(
"fmt"
...
...
This diff is collapsed.
Click to expand it.
day3/car_test.go
→
day3/
lib/
car_test.go
+
2
-
2
View file @
b26e5d45
package
main
_test
package
lib
_test
import
(
.
"go-sinau/day3"
.
"go-sinau/day3
/lib
"
"testing"
"github.com/logrusorgru/aurora"
...
...
This diff is collapsed.
Click to expand it.
day3/main.go
+
1
-
0
View file @
b26e5d45
...
...
@@ -3,6 +3,7 @@ package main
import
(
"flag"
"fmt"
.
"go-sinau/day3/lib"
"time"
"github.com/logrusorgru/aurora"
...
...
This diff is collapsed.
Click to expand it.
makefile
+
3
-
3
View file @
b26e5d45
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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets