golang ãæä¾ããã¤ã³ã¿ãã§ã¼ã¹ã®ä¸ã§ä»£è¡¨çãªç©ã®ä½¿ãæ¹ãã¾ã¨ãã¦ã¿ãã io.Reader type Reader interface { Read(p []byte) (n int, err error) } ãåã io.Readerããã®ã·ã°ããã£ã® Read ãå®è£ ãã¦ããã° golang ã®ããã¨ããããå ¥åæ©è½ã«å¯¾ãã¦èªåã®ã³ã¼ããæä¾ããäºãåºæ¥ãã ä¾ãã°æ°¸é ã«ããã£ã±ããã¨è¨ãç¶ãã Reader ã ã¨ä»¥ä¸ã®æ§ãªå®è£ ã«ãªãã package main import ( "io" "os" ) var text = []rune("ãã£ã±ã") type OppaiReader struct { n int } func (r *OppaiReader) Read(p []byte) (int, error) { in := len(p) nw := 0 for i
{{#tags}}- {{label}}
{{/tags}}