tail

package module
v0.0.0-...-283666f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 5 Imported by: 1

README

tail

tail -F by go lang

Usage

package main
import "github.com/takeshy/tail"
import "fmt"

func main(){
  c := tail.Watch("/path/to/file")
  for {
    select {
    case s := <-c:
      fmt.Println(s)
    }
  }
}

Installation

go get github.com/takeshy/tail

License

MIT

Author

Takeshi Morita

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(filePath string) chan string

Types

type Tail

type Tail struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL