D🦆
https://github.com/microcosm-cc/bluemonday
Size: a a a
D🦆
SP
SP
SP
SP
K
fileContents, _ := ioutil.ReadAll(file)
r linesContent Linesо для этого надо реализовать метод Write
gob.NewEncoder(linesContent).Encode(fileContents)
н
(l Lines) Write(data []byte) (n int, err error) {тоге: у меня метод Write вызывается ДВА РАЗА. почему такое?
...
}
в и
RS
fileContents, _ := ioutil.ReadAll(file)
r linesContent Linesо для этого надо реализовать метод Write
gob.NewEncoder(linesContent).Encode(fileContents)
н
(l Lines) Write(data []byte) (n int, err error) {тоге: у меня метод Write вызывается ДВА РАЗА. почему такое?
...
}
в и
K
type Line struct {
Browsers []string
Email string
Name string
}
type Lines struct {
ContentLines []Line
}
func FastSearch(out io.Writer) {
file, errOpenFile := os.Open(filePath)
if errOpenFile != nil {
panic(errOpenFile)
}
fileContents, errFileRead := ioutil.ReadAll(file)
if errFileRead != nil {
panic(errFileRead)
}
var linesContent Lines
gob.NewEncoder(linesContent).Encode(fileContents)
}
func (l Lines) Write(data []byte) (n int, err error) {
fmt.Println("Aaaaa")
return 666, nil
}
а
type Line struct {
Browsers []string
Email string
Name string
}
type Lines struct {
ContentLines []Line
}
func FastSearch(out io.Writer) {
file, errOpenFile := os.Open(filePath)
if errOpenFile != nil {
panic(errOpenFile)
}
fileContents, errFileRead := ioutil.ReadAll(file)
if errFileRead != nil {
panic(errFileRead)
}
var linesContent Lines
gob.NewEncoder(linesContent).Encode(fileContents)
}
func (l Lines) Write(data []byte) (n int, err error) {
fmt.Println("Aaaaa")
return 666, nil
}