Skip to content

Commit 154c4fa

Browse files
authored
Small Go improvements
1 parent a7c612f commit 154c4fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub(crate) fn run_formatter(path: &Utf8Path) {
2121

2222
let (formatter, args) = match file_ext {
2323
"rs" => ("rustfmt", ["+nightly", "--edition", "2021"].as_slice()),
24-
"go" => ("gofmt", [].as_slice()),
24+
"go" => ("gofmt", ["-w"].as_slice()),
2525
"kt" => ("ktfmt", ["--kotlinlang-style"].as_slice()),
2626
_ => {
2727
tracing::debug!("no known formatter for {file_ext} files");

templates/svix_lib_resource.go.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set resource_type_name = resource.name | to_upper_camel_case -%}
22
{% set api_type_name %}{{ resource_type_name }}Api{% endset -%}
3-
3+
// this file is @generated
44
package svix
55

66
import (

0 commit comments

Comments
 (0)