In golang, is it possible to get reflect.Type from the type itself, from name as string?

Viewed 14352
type t1 struct { i int; s string }
var v1 reflect.Type = /* how to set to t1's reflect.Type? */
  1. is it possible to get the reflect.Type of t1 without having to instantiate it?

  2. is it possible to get the reflect.Type of t1 from having its name "t1" as a string?

1 Answers
Related