Skip to content

Commit

Permalink
tools: add missing lazyReflect implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
UiP9AV6Y committed Feb 8, 2024
1 parent ceedbdd commit 5e9d773
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/cmd/buildinfo/app/reflect.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package app

import (
"reflect"
"strings"
)

type lazyReflect struct {
v interface{}
}

func (r *lazyReflect) String() string {
v := reflect.TypeOf(r.v).String()
p := strings.Split(v, ".")

return strings.ToLower(p[len(p)-1])
}

0 comments on commit 5e9d773

Please sign in to comment.