New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jhump/gopoet

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jhump/gopoet

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go Poet

Build Status Go Report Card GoDoc

This library was inspired by Java Poet, as a library that provides a simple language model for generating Go code.

The model it provides is much simpler than the model exposed by go/ast and go/types, both in its expressive power and in its usability. It cannot model implementation code, which is handled in the library with special support for formatting (a la fmt.Printf) references to symbols and types. This support allows it to provide automatic management of import statements: so you just build the model of the program to generate, and it will emit the program with all of the necessary imports and properly qualified references in the code.

FAQs

Package last updated on 15 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc