diff --git a/.gitignore b/.gitignore index 02eac69..d4fc38f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,27 @@ rad.json #License-file *.flf #Test results file -TestResults.xml \ No newline at end of file +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 \ No newline at end of file diff --git a/internal/camionero.go b/internal/camionero.go new file mode 100644 index 0000000..9ead030 --- /dev/null +++ b/internal/camionero.go @@ -0,0 +1,8 @@ +package internal + +type Camionero struct { + diasSinViaje uint + kilometrosMes uint + dineroMes float32 + viajeExtranjero bool +} diff --git a/internal/destino.go b/internal/destino.go new file mode 100644 index 0000000..8159cac --- /dev/null +++ b/internal/destino.go @@ -0,0 +1,6 @@ +package internal + +type Destino struct { + ciudad string + // empresa destinataria? +} diff --git a/internal/go.mod b/internal/go.mod new file mode 100644 index 0000000..146cd50 --- /dev/null +++ b/internal/go.mod @@ -0,0 +1,3 @@ +module internal + +go 1.21.3 diff --git a/internal/planificadorViajes.go b/internal/planificadorViajes.go new file mode 100644 index 0000000..7499bc4 --- /dev/null +++ b/internal/planificadorViajes.go @@ -0,0 +1,7 @@ +package internal + +type struct PlanificadorViajes { + camioneros []Camionero + viajes []Viaje + asignaciones map[camioneros]viajes +} diff --git a/internal/viaje.go b/internal/viaje.go new file mode 100644 index 0000000..4014cd3 --- /dev/null +++ b/internal/viaje.go @@ -0,0 +1,10 @@ +package internal + +type Viaje struct { + destino Destino + rentabilidad float32 + tiempoDias uint + + // prioridad ?? + // extraRentPrio ?? +} diff --git a/iv.yaml b/iv.yaml new file mode 100644 index 0000000..445aa71 --- /dev/null +++ b/iv.yaml @@ -0,0 +1,3 @@ +lenguaje: Go +entidad: + - internal/planificadorViajes.go \ No newline at end of file