fix(impl): refactor some logic, use new api

This commit is contained in:
Oleksandr Smirnov 2025-03-18 22:50:19 +02:00
parent 3642c247e5
commit ca191dbf3b
No known key found for this signature in database
3 changed files with 14 additions and 40 deletions

View file

@ -1,6 +1,6 @@
package main
func (r Read2) Read(p []byte) (n int, err error) {
func (r *Read2) Read(p []byte) (n int, err error) {
panic("not implemented") // TODO: Implement
}

View file

@ -16,7 +16,7 @@ T["impl"]["works w io.Writer"] = function()
t.writefile(tmp, fixtures.input)
child.cmd("silent edit " .. tmp)
child.fn.setpos(".", { child.fn.bufnr(tmp), 3, 6 })
child.fn.setpos(".", { child.fn.bufnr(tmp), 3, 0 })
child.cmd "GoImpl w io.Writer"
child.cmd "write"