builtin
CRT-A0001180 fmt.Fprintln(io.ErrOut)
181 }
182
183 if bool, err := cmd.Flags().GetBool(flagnames.Debug); err == nil && bool {184 fmt.Fprintf(io.ErrOut, "Stacktrace:\n%s\n", debug.Stack())
185 }
186}
645 return []*appconfig.Compute{guestToCompute(guest)}, reason, nil
646}
647
648func planValidateHighAvailability(ctx context.Context, p *plan.LaunchPlan, org *fly.Organization, print bool) bool {649 if !org.Billable && p.HighAvailability {
650 if print {
651 fmt.Fprintln(iostreams.FromContext(ctx).ErrOut, "Warning: This organization has no payment method, turning off high availability")
72 return server.Run(ctx, opt)
73}
74
75func setupLogger(path string) (logger *log.Logger, close func(), err error) { 76 var out io.Writer
77 if path != "" {
78 f, err := os.OpenFile(path, os.O_WRONLY|os.O_APPEND, 0o600)
72 })),
73}
74
75func configCompare(ctx context.Context, original fly.MachineConfig, new fly.MachineConfig) string { 76 io := iostreams.FromContext(ctx)
77 colorize := io.ColorScheme()
78
It is not recommended to shadow builtins because identifiers shadowing a built-in makes it inaccessible to use. A shadowed variable or function is declared in the scope with the same name as a built-in function.
len := 10 // shadowing bultin `len`
length := 10