Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Add models for gopkg.in/yaml#475

Merged
sauyon merged 1 commit into
github:mainfrom
sauyon:yaml
Feb 16, 2021
Merged

Add models for gopkg.in/yaml#475
sauyon merged 1 commit into
github:mainfrom
sauyon:yaml

Conversation

@sauyon
Copy link
Copy Markdown
Contributor

@sauyon sauyon commented Feb 10, 2021

No description provided.

Copy link
Copy Markdown
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Let's have an eval status checklist here too


FunctionModels() {
this.hasQualifiedName(packagePath(), "NewDecoder") and
(inp.isParameter(0) and outp.isResult())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant parens, here and elsewhere

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the style here from our the autogenerated models because it felt cleaner.

@@ -0,0 +1,70 @@
/**
* Provides classes for working with the [gopkg.in/yaml](https://pkg.go.dev/gopkg.in/yaml.v3) package.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we support more than .v3?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think it would be very necessary to mention all of them so I chose v3 arbitrarily as the one to link to. They actually have a site that we could link to instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't notice that was the target of the link not its text; that's fine then

@sauyon sauyon merged commit e6d11fc into github:main Feb 16, 2021
@sauyon sauyon deleted the yaml branch February 16, 2021 15:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants