initial import

This commit is contained in:
SourceFellows
2020-08-21 06:26:40 +02:00
commit e223458dd4
423 changed files with 9871 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package main
import (
"fmt"
"layeredsample/models"
)
func main() {
c := models.CustomerModel{}
fmt.Println(c)
}

View File

@ -0,0 +1,3 @@
module layeredsample
go 1.14

View File

@ -0,0 +1 @@
golang.source-fellows.com v0.0.0-20200619133407-79aa8981720c h1:c0BKYhs4PULAm3Hb5f+t9AcmPRScdSAkeuajndyOMLQ=

View File

@ -0,0 +1,3 @@
package handlers
type CustomerHandler struct{}

View File

@ -0,0 +1,3 @@
package handlers
type RegistrationHandler struct{}

View File

@ -0,0 +1,11 @@
package models
import "layeredsample/storage"
type CustomerModel struct {
db storage.DB
}
func (c *CustomerModel) Save() {
}

View File

@ -0,0 +1,3 @@
package models
type RegistrationModel struct{}

View File

@ -0,0 +1,9 @@
package storage
import "layeredsample/models"
type DBStorage struct{}
func (d *DBStorage) Save(c models.CustomerModel) {
}

View File

@ -0,0 +1,3 @@
package storage
type XMLStorage struct{}