Skip to content

Fix gofmt compability#107

Open
jonaz wants to merge 1 commit into
rakyll:masterfrom
jonaz:fix-gofmt-compability
Open

Fix gofmt compability#107
jonaz wants to merge 1 commit into
rakyll:masterfrom
jonaz:fix-gofmt-compability

Conversation

@jonaz
Copy link
Copy Markdown

@jonaz jonaz commented Feb 27, 2020

Resolves: #106

@jcchavezs
Copy link
Copy Markdown
Collaborator

Would you be up to add a gofmt check in the generated example on CI (see https://github.com/rakyll/statik/blob/master/.travis.yml#L13)?

@jonaz jonaz force-pushed the fix-gofmt-compability branch from b3a6fa7 to c98fefe Compare February 27, 2020 13:18
@jonaz
Copy link
Copy Markdown
Author

jonaz commented Feb 28, 2020

Would you be up to add a gofmt check in the generated example on CI (see https://github.com/rakyll/statik/blob/master/.travis.yml#L13)?

done!

Comment thread example/statik/statik.go
@@ -6,9 +6,8 @@ import (
"github.com/rakyll/statik/fs"
)


const Web = "web" // static asset namespace
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is needed because you use the literal "web" here but if you really need this constant then it should be private.

Copy link
Copy Markdown
Author

@jonaz jonaz Feb 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only ran whats in .travis.yml and it generated that file. ( ./statik -f -src=./example/public -dest=./example/ -include=*.jpg,*.txt,*.html,*.css,*.js -ns=web)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wrong indentation is not gofmt ok

2 participants