Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gvalkov committed Oct 30, 2024
1 parent da0ded3 commit 0baf987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ type FileSpec struct {
}

// Parse a string into a filespec. Example inputs are:
// alias=1,group=2,/var/log/messages
// /var/log/
// /var/log/*
//
// alias=1,group=2,/var/log/messages
// /var/log/
// /var/log/*
func parseFileSpec(spec string) (FileSpec, error) {
var filespec FileSpec
var path string
Expand Down
5 changes: 3 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"encoding/json"
"github.com/gorilla/handlers"
"github.com/gvalkov/tailon/cmd"
"github.com/igm/sockjs-go/v3/sockjs"
"github.com/shurcooL/httpfs/html/vfstemplate"
"github.com/shurcooL/httpgzip"
"github.com/igm/sockjs-go/v3/sockjs"
"html/template"
"log"
"net/http"
Expand Down Expand Up @@ -162,7 +162,8 @@ func wsWriter(session sockjs.Session, messages chan string, done <-chan struct{}

// Expands the variables in main.CommandSpec.Action with the values in the
// frontend command. For example:
// ["tail", "-n", "$lines", "-F", "$path"] -> ["tail", "-n", "10", "-F", "f1.txt"]
//
// ["tail", "-n", "$lines", "-F", "$path"] -> ["tail", "-n", "10", "-F", "f1.txt"]
func expandCommandArgs(action []string, cmd FrontendCommand) []string {
var res = make([]string, 0)

Expand Down

0 comments on commit 0baf987

Please sign in to comment.