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

メモメモ type Time

<- http://golang.org/pkg/time/#Time type Time type Time struct { // contains filtered or unexported fields } A Time represents an instant in time with nanosecond precision. Programs using times should typically store and pass them as value…

メモメモ delta

<- https://code.google.com/p/go-tour/source/browse/solutions/loops.go Δ - Wikipedia 数学(集合論)で対称差を表すのに使われることがある。 対称差 - Wikipedia 数学において、対称差(たいしょうさ、symmetric difference)とは、二つの集合に対し、ど…

メモメモ %g

Floating-point and complex constituents: //%e scientific notation, e.g. -1234.456e+78 //%g %e for large exponents, %f otherwise

メモメモ os.Open

<- http://golang.org/pkg/os/ Package os Overview ▾ Package os provides a platform-independent interface to operating system functionality. The design is Unix-like, although the error handling is Go-like; failing calls return values of type…

メモメオ Read

<- https://tour.golang.org/methods/10 <- http://golang.org/search?q=Read#Global package binary /src/encoding/binary/binary.go:138 // Read reads structured binary data from r into data. // Data must be a pointer to a fixed-size value or a s…

メモメモ 127.0.0.1

<- https://tour.golang.org/methods/7 type IPAddr [4]bytefunc main() { addrs := map[string]IPAddr{ "loopback": {127, 0, 0, 1} // "loopback": [4]byte{127, 0, 0, 1},