Skip to content

Instantly share code, notes, and snippets.

@sescobb27
Created July 26, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sescobb27/14d4ba545665c867988e8eb3fb6d05bd to your computer and use it in GitHub Desktop.
Save sescobb27/14d4ba545665c867988e8eb3fb6d05bd to your computer and use it in GitHub Desktop.
fun =
Gobgpapi.StartBgpRequest
|> to_string()
|> String.split(".")
|> List.last()
|> String.replace("Request", "")
|> Macro.underscore()
|> String.to_atom()
apply(MyModule, fun, args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment