Codegen: Generate Golang code using cog (#98812)
* Use cog for Go types * Delete old generation code * Fix plugins generation * workspaces update * Update datasources with new generated code * More fixes * Update swagger and openapi specs * Fixes * More files... * Update workspace * More fixes... * Remove unused functions
This commit is contained in:
@@ -4,15 +4,6 @@ import "github.com/go-stack/stack"
|
||||
|
||||
func Pointer[T any](arg T) *T { return &arg }
|
||||
|
||||
func Depointerizer[T any](v *T) T {
|
||||
var emptyValue T
|
||||
if v != nil {
|
||||
emptyValue = *v
|
||||
}
|
||||
|
||||
return emptyValue
|
||||
}
|
||||
|
||||
// Stack is copied from grafana/pkg/infra/log
|
||||
// TODO: maybe this should live in grafana-plugin-sdk-go?
|
||||
func Stack(skip int) string {
|
||||
|
||||
Reference in New Issue
Block a user