-
Notifications
You must be signed in to change notification settings - Fork 4
Documentation is out of date. #2
Comments
@dpastoor I'm glad you've come across my former fork. The command line API should be entirely backward compatible but doesn't have access to any of the newer features I've added and I don't guarantee it will stay long-term. The biggest change to the project itself was using text/template to produce all the generated code. That's an implementation detail though and should not be visible to any users. The package API has changed quite a lot from lestrrat/go-bindata. I unexported everything that should have been internal to the implementation (like Where before you called I added support for Edit: I should also add, the generated code is now correctly formatted and this is enforced with a test in format_test.go. I've also added support for a test corpus in corpus_test.go which I can compare against between commits to check for any unintended changes. Edit: I'll attach an excerpt of a go:generate file I'm using in another comment. |
This file is invoked with Then I use the
httpasset provides methods to serve the files over http. Before I forked, I was using go-bindata-assetfs for that purpose. (I'm using my fork of julienschmidt/httprouter in that example and methods from tmthrgd/httphandlers). This is only one particular way of using this package. It's the one that's working best for me but YMMV. I hope that helps and gives you a solid understanding of this package. If you feel like contributing better documentation, that would be most appreciated and valued. |
Is there a working example of httpasset? |
@steigr The example in my last comment should work without issue. What are you having trouble with? |
Checking tomorrow. :-) |
Would it be possible to note the biggest changes or provide some examples with the new API for how to use this version? I'd be happy to flesh it out and put in a PR if you can give some starting information
The text was updated successfully, but these errors were encountered: