Giter VIP home page Giter VIP logo

Comments (5)

mattn avatar mattn commented on July 21, 2024

直したつもりですが、どうでしょうか。

from files.

thinca avatar thinca commented on July 21, 2024

エラーが微妙に変わりました。

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
main.main.func1.2(0xc82007e4fe, 0xb)
        /home/thinca/.go/src/github.com/mattn/files/files.go:200 +0x135
main.main()
        /home/thinca/.go/src/github.com/mattn/files/files.go:215 +0x9d2

goroutine 19 [runnable]:
syscall.Syscall6(0x101, 0xffffffffffffff9c, 0xc8200d2000, 0x80000, 0x0, 0x0, 0x0, 0x3, 0x80000, 0x0)
        /usr/lib/go/src/syscall/asm_linux_amd64.s:44 +0x5
syscall.openat(0xffffffffffffff9c, 0xc82007eb40, 0x29, 0x80000, 0x0, 0x0, 0x0, 0x0)
        /usr/lib/go/src/syscall/zsyscall_linux_amd64.go:40 +0xc8
syscall.Open(0xc82007eb40, 0x29, 0x80000, 0x0, 0x402733, 0x0, 0x0)
        /usr/lib/go/src/syscall/syscall_linux.go:51 +0x58
os.OpenFile(0xc82007eb40, 0x29, 0x0, 0xc800000000, 0xc8200d0000, 0x0, 0x0)
        /usr/lib/go/src/os/file_unix.go:93 +0xa3
os.Open(0xc82007eb40, 0x29, 0x7f491f569e28, 0x0, 0x0)
        /usr/lib/go/src/os/file.go:246 +0x48
path/filepath.readDirNames(0xc82007eb40, 0x29, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:402 +0x5b
path/filepath.walk(0xc82007eb40, 0x29, 0x7f491f37d390, 0xc8200d0000, 0xc820046f58, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:361 +0x1a2
path/filepath.walk(0xc820074120, 0x1e, 0x7f491f37d390, 0xc820092140, 0xc820046f58, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:374 +0x4fc
path/filepath.Walk(0xc820074120, 0x1e, 0xc820046f58, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:396 +0xe1
main.filesSync.func1(0xc820074120, 0x1e, 0x7f491f379000, 0xc82007a7e0, 0xc820078120)
        /home/thinca/.go/src/github.com/mattn/files/files.go:41 +0x9f
created by main.filesSync
        /home/thinca/.go/src/github.com/mattn/files/files.go:77 +0x11e

from files.

mattn avatar mattn commented on July 21, 2024

あー、わかりました。直します。

from files.

mattn avatar mattn commented on July 21, 2024

どうでしょうか?

from files.

thinca avatar thinca commented on July 21, 2024

動きました!ありがとうございます!

from files.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.