type ReaderAt interface { ReadAt(p []byte, offset int64) (n int, err error) }
file, _ := os.Open("example.txt") defer file.Close() buffer := make([]byte, 10) _, _ = file.ReadAt(buffer, 1000) fmt.Println(string(buffer))In this example, we are creating a file object by opening a file named "example.txt". We then create a buffer of 10 bytes, and call `ReadAt()` method on the file object to read 10 bytes from byte offset 1000. Finally, we print the read bytes as a string. The io.ReaderAt interface is part of the `io` package in Go's standard library.