Skip to content

Commit

Permalink
Updating project structure description.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabri432 committed Sep 4, 2022
1 parent 8473f2d commit 4187f5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
16 changes: 6 additions & 10 deletions readme.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ package main
import (
"fmt"
"github.com/Gabri432/gophysics/constants"
"github.com/Gabri432/gophysics/classical"
"github.com/Gabri432/gophysics/gravity"
"github.com/Gabri432/gophysics/formulas"
)

func main() {
fmt.Println(constants.C) <<< Scrivi una costante
fmt.Println(classical.Force(3, 4)) <<< Chiama una funzione
myPlanet := gravity.PlanetBody{Mass: constants.EARTH_MASS, Radius: constants.EARTH_RADIUS} <<< Costrusci il tuo oggetto
fmt.Println(formulas.Force(3, 4)) <<< Chiama una funzione
myPlanet := formulas.PlanetBody{Mass: constants.EARTH_MASS, Radius: constants.EARTH_RADIUS} <<< Costrusci il tuo oggetto
fmt.Println(myPlanet.EscapeSpeed()) <<< Chiama i suoi metodi per fare calcoli più comodamente.
}

Expand Down Expand Up @@ -87,18 +86,15 @@ func main() {
#### gophysics (main)
- `gophysics.go`, non fornisce alcuna formula, ma diverse funzioni per semplificare alcune operazioni.
- `license`, `readme.md`, `readme.it.md`, `CHANGELOG.txt`.
#### classical

#### formulas
- `classical.go`, dove tutte le formule di FIsica Classica sono presenti.
#### fluids
- `fluids.go`, dove tutte le formule sui Fluidi sono presenti.
#### gravity
- `gravity.go`, dove tutte le formule sulla Gravità sono presenti.
#### thermodynamics
- `thermodynamics.go`, dove tutte le formule sulla Termodinamica sono presenti.
#### electromagnetism
- `electromagnetism.go`, dove tutte le formule sull'Elettromagnetismo sono presenti.
#### relativity
- `relativity.go`, where all the Relativity formulas are located.

#### constants
- `constants.go`, dove tutte le formule sulla Relatività sono presenti.

Expand Down
16 changes: 6 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ package main
import (
"fmt"
"github.com/Gabri432/gophysics/constants"
"github.com/Gabri432/gophysics/classical"
"github.com/Gabri432/gophysics/gravity"
"github.com/Gabri432/gophysics/formulas"
)

func main() {
fmt.Println(constants.C) <<< Write a constant
fmt.Println(classical.Force(3, 4)) <<< Call a function
myPlanet := gravity.PlanetBody{Mass: constants.EARTH_MASS, Radius: constants.EARTH_RADIUS} <<< Create a custom object
fmt.Println(formulas.Force(3, 4)) <<< Call a function
myPlanet := formulas.PlanetBody{Mass: constants.EARTH_MASS, Radius: constants.EARTH_RADIUS} <<< Create a custom object
fmt.Println(myPlanet.EscapeSpeed()) <<< Call object methods to ease some calculations
}

Expand Down Expand Up @@ -87,18 +86,15 @@ func main() {
#### gophysics (main)
- `gophysics.go`, doesn't provide formulas, but other functions to simplify some actions.
- `license`, `readme.md`, `readme.it.md`, `CHANGELOG.txt`.
#### classical

#### formulas
- `classical.go`, where all the Classical physics formulas are located.
#### fluids
- `fluids.go`, where all the Fluid formulas are located.
#### gravity
- `gravity.go`, where all the Gravity formulas are located.
#### thermodynamics
- `thermodynamics.go`, where all the Thermodynamics formulas are located.
#### electromagnetism
- `electromagnetism.go`, where all the Electromagnetism formulas are located.
#### relativity
- `relativity.go`, where all the Relativity formulas are located.

#### constants
- `constants.go`, where all the constants are located.

Expand Down

0 comments on commit 4187f5f

Please sign in to comment.