dolmen-go / codegen Goto Github PK
View Code? Open in Web Editor NEWUtilities to write Go code generators from text templates
Home Page: https://pkg.go.dev/github.com/dolmen-go/codegen
License: Apache License 2.0
Utilities to write Go code generators from text templates
Home Page: https://pkg.go.dev/github.com/dolmen-go/codegen
License: Apache License 2.0
Go 1.21 has added go/ast.IsGenerated
. We should use it instead of the regexp when compiled with Go 1.21+.
From https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source:
To convey to humans and machine tools that code is generated, generated source should have a line that matches the following regular expression (in Go syntax):
Notice that documentation even says should - it is just a recommendation.
The potential issue of generating code with such comments is that a lot of tools (e.g. https://github.com/golangci/golangci-lint) will ignore these files while people may want to have additional checks and refinements than just gofmt
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.