Skip to content

Commit

Permalink
Use godoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Oct 18, 2018
1 parent 2d52273 commit be62de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/ami/static_resolver_ami.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ami

// Generated code
// StaticImages is a map that holds the list of AMIs to be used by for static resolution, it is generated by static_resolver_ami_generate.go
var StaticImages = map[string]map[int]map[string]string{"AmazonLinux2": {

ImageClassGPU: {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ami/static_resolver_ami_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func main() {

f := NewFile("ami")

f.Comment("Generated code")

d := Dict{}

client := newMultiRegionClient()
Expand All @@ -47,6 +45,8 @@ func main() {
d[Lit(family)] = Block(familyImages)
}

f.Comment("StaticImages is a map that holds the list of AMIs to be used by for static resolution, it is generated by static_resolver_ami_generate.go")

f.Var().Id("StaticImages").Op("=").
Map(String()).Map(Int()).Map(String()).String().Values(d)

Expand Down

0 comments on commit be62de8

Please sign in to comment.