package main import ( "flag" "fmt" "io/ioutil" "strings" "github.com/mattn/go-scan" ) func main() { var n = flag.String("n", "", "-n <Case number>") var f = flag.String("f", "", "-f <Config file>") flag.Parse() j, err := ioutil.ReadFile(*f) var js = strings.NewReader(string(j)) var s []string if err := scan.ScanJSON(js, "/cases["+*n+"]/setting", &s); err != nil { fmt.Println(err.Error()) } fmt.Pri