This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// old | |
func getPreferredProductRefIdsFromContactProgress(contactProgress models.ContactProgress) []int { | |
if !contactProgress.IsEmpty() { | |
enterInfo := contactProgress.EnterInfo | |
enterInfoMap := make(map[string]interface{}) | |
json.Unmarshal([]byte(enterInfo), &enterInfoMap) | |
if enterInfoMap["product_ref_ids"] != nil { | |
value := reflect.ValueOf(enterInfoMap["product_ref_ids"]) | |
fmt.Println(value.Kind(), enterInfoMap["product_ref_ids"]) | |
var rawData string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# addSubview | |
UIView.transition(with: self.view, duration: 0.25, options: [.transitionCrossDissolve], animations: { | |
self.view.addSubview(view) | |
}, completion: nil) | |
# removeFromSuperview | |
UIView.transition(with: self.view, duration: 0.25, options: [.transitionCrossDissolve], animations: { | |
subview.removeFromSuperview() | |
}, completion: nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ivimage | |
import ( | |
"fmt" | |
"testing" | |
"time" | |
) | |
func TestImage_Save(t *testing.T) { | |
// Please dont change value, you should change format |
OlderNewer