Skip to content

Commit 0ac493e

Browse files
lantoliwtrocki
andauthored
chore: Delete unneeded templates (#425)
Co-authored-by: Wojciech Trocki <[email protected]>
1 parent 51582b4 commit 0ac493e

File tree

7 files changed

+12
-2
lines changed

7 files changed

+12
-2
lines changed

auth/code/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type TokenSource interface {
125125
Token() (*Token, error)
126126
}
127127

128-
func (c *Config) Do(ctx context.Context, req *http.Request, v interface{}) (*core.Response, error) {
128+
func (c *Config) Do(ctx context.Context, req *http.Request, v any) (*core.Response, error) {
129129
resp, err := core.DoRequestWithClient(ctx, c.client, req)
130130
if err != nil {
131131
// If we got an error, and the context has been canceled,

docs/doc_5_best_practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The golang `ìnterface{}` type allows you to use the following types as input ar
6969

7070
- Basic types (integer, boolean)
7171
- Your own structures
72-
- map[string]interface{} for free-form objects
72+
- any for free-form objects
7373

7474
NOTE: The Atlas Go SDK uses free-form objects only where models need to handle multiple conflicting values. For example, some of the existing Atlas Search APIs allow you to supply booleans or objects.
7575

tools/config/go-templates/model_anyof.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// THIS TEMPLATE IS NOT BEING TRIGGERED BY THE CURRENT MODEL
2+
13
// {{classname}} {{{description}}}{{^description}}struct for {{{classname}}}{{/description}}
24
type {{classname}} struct {
35
{{#anyOf}}

tools/config/go-templates/model_enum.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// THIS TEMPLATE IS NOT BEING TRIGGERED BY THE CURRENT MODEL
2+
13
// {{{classname}}} {{{description}}}{{^description}}the model '{{{classname}}}'{{/description}}
24
type {{{classname}}} {{{format}}}{{^format}}{{dataType}}{{/format}}
35

tools/config/go-templates/model_oneof.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// THIS TEMPLATE IS NOT BEING TRIGGERED BY THE CURRENT MODEL
2+
13
// {{classname}} - {{{description}}}{{^description}}struct for {{{classname}}}{{/description}}
24
type {{classname}} struct {
35
{{#oneOf}}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// THIS TEMPLATE IS NOT BEING TRIGGERED BY THE CURRENT MODEL
2+

tools/config/go-templates/signing.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// THIS TEMPLATE IS NOT BEING TRIGGERED BY THE CURRENT MODEL
2+
13
{{>partial_header}}
24
package {{packageName}}
35

0 commit comments

Comments
 (0)