Quick actions

cmd+k|ctrl+k

Navigation

Languages

Interfaces / Ensure type implements interface / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T09:40:32Z

Updated

2019-03-26T09:40:32Z

package main

import "io"

type MyReadCloser struct {
}

func (rc *MyReadCloser) Read(d []byte) (int, error) {
	return 0, nil
}

var _ io.ReadCloser = &MyReadCloser{}

func main() {
}
INFO