######################################################
######################################################
Transfer files between servers.
################################### | |
Normalization Reviewed | |
################################### | |
A. Ist Normal Form | |
================== |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
_ "github.com/lib/pq" | |
) | |
// Reference :: https://pkg.go.dev/github.com/lib/pq?tab=doc |
package main | |
import ( | |
"fmt" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" | |
) | |
type User struct { |
// Static Types :: | |
// e.g. Structs can lead to a nightmare when initializing them | |
// if they are deeply embedded which translates to nesting. | |
// Instead use Structs plus Interfaces to decouple and reuse stuff. | |
// | |
// | |
package main | |
import "fmt" |