Skip to content

int conversion in format??  #9

@sinelga

Description

@sinelga

I try figure out why

file := strings.NewReader(`37.219.240.1 [05/Nov/2014:02:15:54 +0200] test.fi "GET / HTTP/1.1"`)
format := `$remote_addr [$time_local] $host "$request" `

Ok.

file := strings.NewReader(`37.219.240.1 [05/Nov/2014:02:15:54 +0200] test.fi "GET / HTTP/1.1" 200`)
format := `$remote_addr [$time_local] $host "$request"  $status`

Don't work.

From other side

file := strings.NewReader(`37.219.240.1 [05/Nov/2014:02:15:54 +0200] test.fi "GET / HTTP/1.1" "200"`)
format := `$remote_addr [$time_local] $host "$request"  "$status"`

OK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions