1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-22 13:06:09 +03:00

remove comments

This commit is contained in:
alexpantyukhin 2017-09-01 17:52:07 +04:00
parent 86ac331681
commit 708e69df88

View File

@ -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}