######################################################
######################################################
Transfer files between servers.
| // 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" |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/jinzhu/gorm/dialects/postgres" | |
| ) | |
| type User struct { |
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/lib/pq" | |
| ) | |
| // Reference :: https://pkg.go.dev/github.com/lib/pq?tab=doc |
| ################################### | |
| Normalization Reviewed | |
| ################################### | |
| A. Ist Normal Form | |
| ================== |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: mariadb | |
| name: mariadb-deployment | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| #myInput { |
| // BEGIN PERSON OR GROUP QUERY | |
| // Queery Person or Group Properties | |
| function getItemDetails(webUrl,listTitle,itemId,selectFields, expandFields){ | |
| var endpointUrl = webUrl + "/_api/web/lists/getbytitle('" + listTitle + "')/items(" + itemId + ")"; | |
| endpointUrl+= '?$select=' + selectFields.join(","); | |
| endpointUrl+= '&$expand=' + expandFields.join(","); | |
| return executeRequest(endpointUrl,'GET'); | |
| } |