Skip to content

Commit

Permalink
use correct package name
Browse files Browse the repository at this point in the history
  • Loading branch information
aoyako committed Apr 15, 2024
1 parent fc80012 commit 3a93ca6
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ run:
allow-serial-runners: true
go: '1.22'

linters-settings:
gofumpt:
module-path: .

linters:
enable-all: true
disable:
- depguard
- gofumpt
- godot
- forbidigo # tmp
- godox
- exhaustruct
Expand Down
22 changes: 22 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"fmt"
"log"
"os"

"hvif"
)

func main() {
filename := "testdata/ime.hvif"

file, err := os.Open(filename)
if err != nil {
log.Println("Error opening file:", err)
}
defer file.Close()

img, err := hvif.ReadImage(file)
fmt.Println(img, err)
}
2 changes: 1 addition & 1 deletion image.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion image_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion path.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion shape.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion style.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion transform.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package hvif

import (
"encoding/binary"
Expand Down

0 comments on commit 3a93ca6

Please sign in to comment.