func readFileAsStrings() ([]string, error) {
	bytes, err := ioutil.ReadFile(*inputFile)
	if err != nil {
		return nil, err
	}
	contents := string(bytes)
	lines := strings.Split(contents, "\n")
	lines = lines[:len(lines)-1]
	return lines, nil
}
// Read input file as a slice of string
Read input file as a slice of string
// Read input file as a slice of string
func readFileAsStrings() ([]string, error) {
	bytes, err := ioutil.ReadFile(*inputFile)
	if err != nil {
		return nil, err
	}
	contents := string(bytes)
	lines := strings.Split(contents, "\n")
	lines = lines[:len(lines)-1]
	return lines, nil
}
func readFileAsStrings ( ) ( [ ] string , error ) { bytes , err := ioutil . ReadFile ( * inputFile ) if err != nil { return nil , err } contents := string ( bytes ) lines := strings . Split ( contents , " \n " ) lines = lines [ : len ( lines ) - 1 ] return lines , nil }
Read input file as a slice of string
Read input file as a slice of string