2015-04-06から1日間の記事一覧

メモメモ implicit / explicit

<- https://tour.golang.org/methods/5 Interfaces are satisfied implicitly explicit ; 陽関数 関数 (数学) - Wikipedia 陽表式と陰伏式 多変数方程式がいくつかの関数関係を定義することもある。例えば のような式が与えられているとき、x と y は独立に…

メモメモ fmt2 Sprint / Print

func Sprint func Sprint(a ...interface{}) string Sprint formats using the default formats for its operands and returns the resulting string. Spaces are added between operands when neither is a string. func Print func Print(a ...interface{}…

メモメモ Nextafter float

func Nextafter func Nextafter(x, y float64) (r float64) Nextafter returns the next representable float64 value after x towards y. Special cases: Nextafter64(x, x) = x Nextafter64(NaN, y) = NaN Nextafter64(x, NaN) = NaN NaN - Wikipedia NaN…

メモメモ pac log

<- http://golang.org/pkg/os/ <-http://golang.org/pkg/log/ Package log Overview ▾ Package log implements a simple logging package. It defines a type, Logger, with methods for formatting output. It also has a predefined 'standard' Logger acc…

メモメモ %q

<-https://golang.org/pkg/fmt/ Package fmt Printing Integer: //%q a single-quoted character literal safely escaped with Go syntax. String and slice of bytes: //%q a double-quoted string safely escaped with Go syntax