Lines Matching refs:fmt
77 flattened.Name = fmt.Sprintf("anonymous@<%d>", anonymousModuleCount)
98 fmt.Fprintln(os.Stderr, err)
100 return nil, fmt.Errorf("%d parsing errors", len(errs))
122 fmt.Fprintf(w, "declare -a MODULE_NAMES\n")
123 fmt.Fprintf(w, "declare -A MODULE_TYPE_DICT\n")
124 fmt.Fprintf(w, "declare -A MODULE_PROP_KEYS_DICT\n")
125 fmt.Fprintf(w, "declare -A MODULE_PROP_VALUES_DICT\n")
126 fmt.Fprintf(w, "\n")
134 fmt.Fprintf(w, "MODULE_TYPE_DICT[%q]=%q\n", name, quoteBashString(module.Type))
135 fmt.Fprintf(w, "MODULE_PROP_KEYS_DICT[%q]=%q\n", name,
142 list = append(list, fmt.Sprintf("%v", s))
144 propValue = fmt.Sprintf("%s", strings.Join(list, " "))
146 propValue = fmt.Sprintf("%v", v)
149 fmt.Fprintf(w, "MODULE_PROP_VALUES_DICT[%q]=%q\n", key, quoteBashString(propValue))
151 fmt.Fprintf(w, "\n")
153 fmt.Fprintf(w, "MODULE_NAMES=(\n")
155 fmt.Fprintf(w, " %q\n", name)
157 fmt.Fprintf(w, ")\n")
172 fmt.Fprintf(os.Stderr, "Usage: %s [OPTION]... [FILE]...\n", os.Args[0])
173 fmt.Fprintf(os.Stderr, "Flatten Android.bp to python friendly json text.\n")
174 fmt.Fprintf(os.Stderr, "If no file list is specified, read from standard input.\n")
175 fmt.Fprintf(os.Stderr, "\n")
182 fmt.Fprintf(os.Stderr, "error: %v\n", err)
210 panic(fmt.Errorf("%q is a directory", pathname))
226 fmt.Printf("%s\n", b)