{"blog_url":"https://shuzo-kino.hateblo.jp/","categories":["golang"],"author_url":"https://blog.hatena.ne.jp/shuzo_kino/","url":"https://shuzo-kino.hateblo.jp/entry/2017/04/21/235022","provider_url":"https://hatena.blog","author_name":"shuzo_kino","published":"2017-04-21 23:50:22","version":"1.0","title":"if\u69cb\u6587\u306e\u4e2d\u3060\u3051\u3067\u901a\u7528\u3059\u308b\u5909\u6570\u3092\u5225\u9014\u8a2d\u5b9a\u3067\u304d\u308b","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2017%2F04%2F21%2F235022\" title=\"if\u69cb\u6587\u306e\u4e2d\u3060\u3051\u3067\u901a\u7528\u3059\u308b\u5909\u6570\u3092\u5225\u9014\u8a2d\u5b9a\u3067\u304d\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","image_url":null,"type":"rich","provider_name":"Hatena Blog","blog_title":"Bye Bye Moore","description":"GO\u8a00\u8a9e\u3067\u306fif\u6587\u306e\u4e2d\u3060\u3051\u3067\u901a\u7528\u3059\u308b\u5909\u6570\u3092\u5225\u9014\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u5b9f\u969b\u306e\u3068\u3053\u308d \u516c\u5f0f\u30b5\u30f3\u30d7\u30eb\u304b\u3089\u3002 \u6307\u5b9a\u6570\u5206\u3001\u4e57\u6570\u3092\u639b\u3051\u308b\u304c\u6700\u5f8c\u306e\u5f15\u6570\u3092\u7a81\u7834\u3057\u305f\u5834\u5408\u306f\u305d\u308c\u306b\u5f93\u3046\u2026\u2026\u307f\u305f\u3044\u306a \u3042\u308b\u7a2e\u30d5\u30a3\u30eb\u30bf\u30fc\u3081\u3044\u305f\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002 package main import ( \"fmt\" \"math\" ) func pow(x, n, lim float64) float64 { if v := math.Pow(x, n); v < lim { return v } return lim } func main() { fmt.Println( pow(3, 2, 10), pow(3, 3, 20), ) } \u2026"}