1MÃyzÅ·Jun 15, 2018Table-driven tests in GoI used table-driven tests to refactor my code. I found this technique in Andrew Gerrand slide while he was talking at Testing Technique in…A response icon1A response icon1
1MÃyzÅ·Sep 20, 2016Package time in golangสวัสดีค่ะ วันก่อนได้ลองทำโจทย์เล็กๆ โจทย์คือถ้าเวลาอยู่ในช่วงหลังเที่ยงคืนถึงก่อนเที่ยงวันจะ say “Hello, Good morning”…
1MÃyzÅ·Sep 12, 2016Type String In GolangZero value ของ type นี้คือ empty string ประเภทข้อมูล string ใน Go สามารถประกาศได้สองแบบ ดังนี้
1MÃyzÅ·Sep 9, 2016Get the last day of month in Golangสวัสดีค่ะ วันนี้แอบมาโน้ตไว้หน่อยA response icon1A response icon1
1MÃyzÅ·Sep 7, 2016How to check if there is a special character in string in GoLangขอบันทึกไว้อีก โจทย์นี้ได้ใช้บ่อยมากๆ เวลาที่ทำ api ให้คนอื่นเรียกมา ก็จะมีบางระบบที่ไม่ได้กรอง special charactor ออกก่อนจะบันทึกข้อมูล…
1MÃyzÅ·Sep 6, 2016Refactor Duplicate Control Flow To Data Structure (JavaScript)ตัวอย่างโค้ดที่ยกมา เป็นโค้ดที่ต้องการเลือก Html Template โดยดูเงื่อนไขการเลือกจากค่าของ Group และ Status โดยการเรียกใช้ฟังก์ชัน…A response icon3A response icon3
1MÃyzÅ·Sep 2, 2016มารู้จัก ${SPACE} ใน Robot Framework กันขอโน้ตไว้หน่อย วันนี้ในทีมเจอปัญหาจะเปรียบเทียบคำที่ได้มาจาก API กับคำที่ต้องการให้เป็น แต่ข้อมูลมันมี SPACE ติดกันสองตัว ทำให้ Robot…
1MÃyzÅ·Sep 2, 2016Format JSON ด้วยคำสั่งใน Mac OSXปกติในเวลาทำงานอยากจะดูข้อมูล Json สวยๆจะเข้าเว็บนี้เสมอ https://jsonformatter.curiousconcept.com/ เป็นเว็บที่เราวางก้อน JSON ลงไป…