Skip to content

Commit

Permalink
Fixed rakyll to varwin for work
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Prusov committed Aug 1, 2019
1 parent 5aa9a0c commit f66c4f2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go:
- 1.9.x
- 1.10.3

go_import_path: github.com/rakyll/statik
go_import_path: github.com/varwin/statik

install:
- go build -v
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# statik

[![Build Status](https://travis-ci.org/rakyll/statik.svg?branch=master)](https://travis-ci.org/rakyll/statik)
[![Build Status](https://travis-ci.org/varwin/statik.svg?branch=master)](https://travis-ci.org/varwin/statik)

statik allows you to embed a directory of static files into your Go binary to be later served from an http.FileSystem.

Expand All @@ -10,7 +10,7 @@ Is this a crazy idea? No, not necessarily. If you're building a tool that has a

Install the command line tool first.

go get github.com/rakyll/statik
go get github.com/varwin/statik

statik is a tiny program that reads a directory and generates a source file that contains its contents. The generated source file registers the directory contents to be used by statik file system.

Expand All @@ -22,7 +22,7 @@ In your program, all your need to do is to import the generated package, initial

~~~ go
import (
"github.com/rakyll/statik/fs"
"github.com/varwin/statik/fs"

_ "./statik" // TODO: Replace with the absolute import path
)
Expand All @@ -40,6 +40,6 @@ import (

Visit https://localhost:8080/public/path/to/file to see your file.

There is also a working example under [example](https://github.com/rakyll/statik/tree/master/example) directory, follow the instructions to build and run it.
There is also a working example under [example](https://github.com/varwin/statik/tree/master/example) directory, follow the instructions to build and run it.

Note: The idea and the implementation are hijacked from [camlistore](https://camlistore.org/). I decided to decouple it from its codebase due to the fact I'm actively in need of a similar solution for many of my projects.
4 changes: 2 additions & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log"
"net/http"

_ "github.com/rakyll/statik/example/statik"
"github.com/rakyll/statik/fs"
_ "github.com/varwin/statik/example/statik"
"github.com/varwin/statik/fs"
)

// Before buildling, run go generate.
Expand Down
2 changes: 1 addition & 1 deletion example/statik/statik.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module github.com/rakyll/statik
module github.com/varwin/statik
2 changes: 1 addition & 1 deletion statik.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func generateSource(srcPath string) (file *os.File, err error) {
package %s
import (
"github.com/rakyll/statik/fs"
"github.com/varwin/statik/fs"
)
func init() {
Expand Down

0 comments on commit f66c4f2

Please sign in to comment.