github.com/v2fly/tools@v0.100.0/internal/fastwalk/fastwalk_dirent_ino.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build (linux || darwin) && !appengine
     6  // +build linux darwin
     7  // +build !appengine
     8  
     9  package fastwalk
    10  
    11  import "syscall"
    12  
    13  func direntInode(dirent *syscall.Dirent) uint64 {
    14  	return uint64(dirent.Ino)
    15  }