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

Objetivo 2 #12

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
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
25 changes: 24 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,27 @@ rad.json
#License-file
*.flf
#Test results file
TestResults.xml
TestResults.xml

### Go ###
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
8 changes: 8 additions & 0 deletions internal/camionero.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package internal

type Camionero struct {
diasSinViaje uint
kilometrosMes uint
dineroMes float32
viajeExtranjero bool
}
6 changes: 6 additions & 0 deletions internal/destino.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package internal

type Destino struct {
ciudad string
// empresa destinataria?
}
3 changes: 3 additions & 0 deletions internal/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module internal

go 1.21.3
7 changes: 7 additions & 0 deletions internal/planificadorViajes.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package internal

type struct PlanificadorViajes {
camioneros []Camionero
viajes []Viaje
asignaciones map[camioneros]viajes
}
10 changes: 10 additions & 0 deletions internal/viaje.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package internal

type Viaje struct {
destino Destino
rentabilidad float32
tiempoDias uint

// prioridad ??
// extraRentPrio ??
}
3 changes: 3 additions & 0 deletions iv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lenguaje: Go
entidad:
- internal/planificadorViajes.go