Skip to content
#

codegen

Here are 300 public repositories matching this topic...

stephanecopin
stephanecopin commented Jun 7, 2019

I've been using Sourcery to generate documentation automatically for GitHub wiki (i.e. generate markdown files based on types & annotations), as it's pretty user friendly on there (as in "easy to read") and also very easy to do in templates thanks to Sourcery's capability to generate files on the fly.

However, using annotations is not very "coder-friendly" though, as it gets hard to maintain be

sonatard
sonatard commented Feb 18, 2020

What happened?

Generated comment says , "The code below was going to be deleted when updating resolvers. "
But I exec gqlgen generate again, code didn't delete.

I don't understand when updating resolvers mean.

// !!! WARNING !!!
// The code below was going to be deleted when updating resolvers. It has been copied here so you have
// one last chance to move it out of harms 
rogpeppe
rogpeppe commented May 25, 2019

One of the specific advantages of the wire approach is that it generates code that's relatively readable compared to reflect-based equivalents. When wire.Value is used on a small by-value type, there's no need for the value to live in a global variable - the expression could instead be used literally inside the generated code, which would make the code easier to follow, and more similar to the c

joncalhoun
joncalhoun commented Mar 11, 2019

This probably doesn't affect many people, and it isn't super important, but let's say you create a package with a name that is the same as a package it uses. Eg I might make github.com/xxx/myapp/http and inside of it use the net/http package.

package http

//go:generate moq -pkg http_test -out thing_moq_test.go . Thing

type Thing interface {
  Blah(w http.ResponseWriter, r *htt
willgu-gdm
willgu-gdm commented Apr 25, 2020

I see that x-server-raw-response is available to expose the underlying to users, allowing deeper customization of response.

I was wondering if it's possible to expose a similar interface for request as well? So that we can utilize some predefined functions by akka-http. For example, extractClientIP.

Not a huge deal and is blocking anything, since we can simply replicate all these funct

Graphaello

Improve this page

Add a description, image, and links to the codegen topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codegen topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.