code: func generateMappings(appendCurrent bool) {
  	hdr := "package main\n"
  
  	initfn := `
  	func init() {
  
  
  	`
  	t, err := bindgen.Parse(model, hdrfile)
  	handleErr(err)
  
  	var buf io.WriteCloser
  	if appendCurrent {
  		buf, err = os.OpenFile("mappings.go", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)
  	} else {
  		buf, err = os.OpenFile("mappings.go", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
  	}
  	handleErr(err)
  	defer buf.Close()
  
  	if !appendCurrent {
  		fmt.Fprintln(buf, hdr)
  		bindgen.GenIgnored(buf, t, functions)
  		fmt.Fprintln(buf, initfn)
  		bindgen.GenNameMap(buf, t, "fnNameMap", processNameBasic, functions, true)
  		bindgen.GenNameMap(buf, t, "enumMappings", processNameBasic, enums, true)
  
  		generateCRUD(buf, t, "create")
  		generateCRUD(buf, t, "set")
  		generateCRUD(buf, t, "destroy")
  		generateCRUD(buf, t, "methods")
  		fmt.Fprintln(buf, "}\n")
  	}
  	generateAlphaBeta(buf, t)
  	fmt.Fprintln(buf, initfn)
  	fmt.Fprintln(buf, "}\n")
  }
docs: // generate this contains function to generate for THIS package (main)
  // generateMappings is used to generate the mappings