Skip to content

Commit

Permalink
Fix golint warnings about godoc comments (rakyll#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb authored and jbd@ committed Jan 7, 2017
1 parent e383bbf commit a2b9c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package contains an HTTP file system that works with zip contents.
// Package fs contains an HTTP file system that works with zip contents.
package fs

import (
Expand All @@ -33,13 +33,13 @@ type statikFS struct {
files map[string]*zip.File
}

// Registers zip contents data, later used to initialize
// Register registers zip contents data, later used to initialize
// the statik file system.
func Register(data string) {
zipData = data
}

// Creates a new file system with the registered zip contents data.
// New creates a new file system with the registered zip contents data.
func New() (http.FileSystem, error) {
if zipData == "" {
return nil, errors.New("statik/fs: No zip data registered.")
Expand Down
2 changes: 1 addition & 1 deletion statik.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func init() {
return f, nil
}

// Converts zip binary contents to a string literal.
// FprintZipData converts zip binary contents to a string literal.
func FprintZipData(dest *bytes.Buffer, zipData []byte) {
for _, b := range zipData {
if b == '\n' {
Expand Down

0 comments on commit a2b9c35

Please sign in to comment.