mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-25 22:46:05 +03:00
remove comments
This commit is contained in:
parent
86ac331681
commit
708e69df88
@ -70,11 +70,9 @@ func (productFacade ProductFacade) GetDiscountedCost(userName string, productNam
|
|||||||
product := Product{name: "Car", cost:10.50, discount: 0.1 }
|
product := Product{name: "Car", cost:10.50, discount: 0.1 }
|
||||||
|
|
||||||
userStorage := UserStorage{storageMap: make(map[string]User)}
|
userStorage := UserStorage{storageMap: make(map[string]User)}
|
||||||
//userStorage.storageMap = make(map[string]User)
|
|
||||||
userStorage.storageMap[user.name] = user
|
userStorage.storageMap[user.name] = user
|
||||||
|
|
||||||
productStorage := ProductStorage{storageMap: make(map[string]Product)}
|
productStorage := ProductStorage{storageMap: make(map[string]Product)}
|
||||||
//productStorage.storageMap = make(map[string]Product)
|
|
||||||
productStorage.storageMap[product.name] = product
|
productStorage.storageMap[product.name] = product
|
||||||
|
|
||||||
facade := ProductFacade{productStorage: productStorage, userStorage: userStorage}
|
facade := ProductFacade{productStorage: productStorage, userStorage: userStorage}
|
||||||
|
Loading…
Reference in New Issue
Block a user