I was answering a question on StackOverflow, I wrote a code snippet and provided an example of how that piece of code should be used.
I was going to write
Here's an example of usage
Then I was wondering if I could put "use" instead "usage"
Here's an example of use
What I was trying to say is
Here's an example of how you can use it.
Here's an example of how to use it.
I looked up the definitions, I googled them, but I am still not sure which one is correct and whether they both are acceptable in this particular situation.
This ngram brought nothing but more confusion. See that surge? What does that even mean?
Could you please clear it up for me?