Skip to content

harukasan/ltsvlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ltsvlog

Warning Under developing. API will be changed in further commits.

Examples

with struct

package main

import . "github.com/harukasan/ltsvlog"

type L struct{
  Time time.Time
  Status int
  URL string
}

func main() {
  Log(L{Time: time.Now, Status: 200, URL: "https://example.com/"})
  // time:1970-01-01T09:00:00 09:00\tstatus:200\turl:https://example.com/
}

with fields

package main

import . "github.com/harukasan/ltsvlog"

func main() {
  Logf(F("time", time.Now), F("status", 200), F("url", "https://example.com/"))
  // time:1970-01-01T09:00:00 09:00\tstatus:200\turl:https://example.com/
}

Copyright

Copyright 2017 Shunsuke Michii. All rights reserverd. See LICENSE file.

Releases

No releases published

Packages

No packages published

Languages