package main

import (
	"fmt"
	"io/ioutil"
	//"github.com/go-yaml/yaml"
)

func main() {
	fmt.Printf("Readin input.yaml!\n")

	data, err := ioutil.ReadFile("input.yaml")
	if err != nil {
		panic(err)
	}
	fmt.Print(string(data))
}

package main

import (
	//"flag"
	"fmt"
	"io/ioutil"
	//"github.com/go-yaml/yaml"
)

func readFile() string {
	fmt.Printf("Readin input.yaml!\n")
	data, err := ioutil.ReadFile("input.yaml")
	if err != nil {
		panic(err)
	}
	return string(data)
}

func filter() {

}

func convert() {

}

func writeFile() {

}

func main() {
	data := readFile()
	fmt.Print(data)
}

Use a function for reading the file
Use a function for reading the file
