Skip to content

Instantly share code, notes, and snippets.

@filinvadim
Created October 13, 2021 09:50
Show Gist options
  • Save filinvadim/dde5a207bbe36a8a629fa56ed2aa947d to your computer and use it in GitHub Desktop.
Save filinvadim/dde5a207bbe36a8a629fa56ed2aa947d to your computer and use it in GitHub Desktop.

Revisions

  1. Vadim Filin created this gist Oct 13, 2021.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    val := reflect.ValueOf(&struct{})
    for i := 0; i < val.NumMethod(); i++ {
    name := val.Type().Method(i).Name
    }