Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker with Go 1.15 and Vim Go IDE #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!fs/
!go-env
!go-ide
!go-init
17 changes: 0 additions & 17 deletions 1-functional-fundamentals/ch01-pure-fp/01_oop/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions 1-functional-fundamentals/ch01-pure-fp/01_oop/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module 01_oop

go 1.18
183 changes: 0 additions & 183 deletions 1-functional-fundamentals/ch01-pure-fp/01_oop/init

This file was deleted.

23 changes: 0 additions & 23 deletions 1-functional-fundamentals/ch01-pure-fp/01_oop/init-windows.sh

This file was deleted.

22 changes: 11 additions & 11 deletions 1-functional-fundamentals/ch01-pure-fp/01_oop/main.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package main

import (
"oop"
"fmt"
"01_oop/oop"
"fmt"
)

func main() {
oop.MyCars.Add(oop.Car{"IS250"})
oop.MyCars.Add(oop.Car{"Accord"})
oop.MyCars.Add(oop.Car{"Highlander"})
oop.MyCars.Add(oop.Car{"IS250"})
oop.MyCars.Add(oop.Car{"Accord"})
oop.MyCars.Add(oop.Car{"Highlander"})

car, err := oop.MyCars.Find("Highlander")
if err != nil {
fmt.Printf("ERROR: %+v", err)
} else {
fmt.Printf("Found %+v", car)
}
car, err := oop.MyCars.Find("Highlander")
if err != nil {
fmt.Printf("ERROR: %+v", err)
} else {
fmt.Printf("Found %+v", car)
}
}
3 changes: 3 additions & 0 deletions 1-functional-fundamentals/ch01-pure-fp/02_fib/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module 02_fib

go 1.18
Loading