1. Miki Tebeka
  2. nrsc

Pull requests

#2 Declined
Repository
Deleted repository
Branch
default (bf17f11f6e18)
Repository
tebeka
Branch
default

Modified nrsc to accept any number of folders. Modified the Handle() function to strip only the preceding '/', permitting reference to these folders.

Author
  1. James Pirruccello
Reviewers
Description

This modification permits multiple folders to be passed as arguments, e.g.:

Say you have private resources in ./private/ , and public ones in ./public/

go build binary.file nrsc binary.file "public private" -q

Now you can handle the public resources without exposing the private ones:

package main

...

nrsc.Handle("/public/")
  • Learn about pull requests

Comments (2)

  1. Miki Tebeka repo owner

    Takes me a while to get to this. I'm generally OK with this approach but have a nagging feeling there might be something better. Lemme simmer some more on this ...