diff --git a/src/util.rs b/src/util.rs index 2133a25..ff44653 100644 --- a/src/util.rs +++ b/src/util.rs @@ -21,7 +21,7 @@ pub(crate) fn run_formatter(path: &Utf8Path) { let (formatter, args) = match file_ext { "rs" => ("rustfmt", ["+nightly", "--edition", "2021"].as_slice()), - "go" => ("gofmt", [].as_slice()), + "go" => ("gofmt", ["-w"].as_slice()), "kt" => ("ktfmt", ["--kotlinlang-style"].as_slice()), _ => { tracing::debug!("no known formatter for {file_ext} files"); diff --git a/templates/svix_lib_resource.go.jinja b/templates/svix_lib_resource.go.jinja index f136d31..603a1b0 100644 --- a/templates/svix_lib_resource.go.jinja +++ b/templates/svix_lib_resource.go.jinja @@ -1,6 +1,6 @@ {% set resource_type_name = resource.name | to_upper_camel_case -%} {% set api_type_name %}{{ resource_type_name }}Api{% endset -%} - +// this file is @generated package svix import (