Golang Input Reader

package main

import (
	"fmt"
	"io"
	"strings"
)

func main() {
	data := strings.NewReader("Hello World")
	opt, _ := io.ReadAll(data)
	fmt.Println(string(opt))
}
Restu Wahyu Saputra