Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion templates/svix_lib_resource.go.jinja
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down