Skip to content

Commit 4f425c0

Browse files
committed
go: Export component type summary
1 parent 98dbc5b commit 4f425c0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/generator.rs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl Generator<'_> {
145145
(None, "rs") => "mod".to_owned(),
146146
(None, "cs" | "java" | "kt") => "Summary".to_owned(),
147147
(None, "ts") => "index".to_owned(),
148+
(None, "go") => "models".to_owned(),
148149
(None, _) => "summary".to_owned(),
149150
};
150151

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Package svix this file is @generated DO NOT EDIT
2+
package svix
3+
4+
import "github.com/svix/svix-webhooks/go/models"
5+
6+
type (
7+
{% for type in types -%}
8+
{{ type | to_upper_camel_case }} = models.{{ type | to_upper_camel_case }}
9+
{% endfor %}
10+
)

0 commit comments

Comments
 (0)