go fmt
This commit is contained in:
parent
56f7663171
commit
e8d5116ac2
@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.binarythought.com/cdramey/qurl/storage"
|
|
||||||
"time"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"path"
|
"git.binarythought.com/cdramey/qurl/storage"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func manageBackup(stor storage.Storage, dir string, interval int) {
|
func manageBackup(stor storage.Storage, dir string, interval int) {
|
||||||
|
4
load.go
4
load.go
@ -3,10 +3,10 @@ package main
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.binarythought.com/cdramey/qurl/obj"
|
||||||
|
"git.binarythought.com/cdramey/qurl/storage"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"git.binarythought.com/cdramey/qurl/storage"
|
|
||||||
"git.binarythought.com/cdramey/qurl/obj"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
4
main.go
4
main.go
@ -3,11 +3,11 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.binarythought.com/cdramey/qurl/pages"
|
||||||
|
"git.binarythought.com/cdramey/qurl/storage"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"git.binarythought.com/cdramey/qurl/pages"
|
|
||||||
"git.binarythought.com/cdramey/qurl/storage"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate go run ./togo -n Favicon_ico -i assets/favicon.ico -p static -o static/favicon_ico.go
|
//go:generate go run ./togo -n Favicon_ico -i assets/favicon.ico -p static -o static/favicon_ico.go
|
||||||
|
@ -2,9 +2,9 @@ package obj
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"net/url"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type QURL struct {
|
type QURL struct {
|
||||||
|
@ -2,11 +2,11 @@ package pages
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"html/template"
|
"git.binarythought.com/cdramey/qurl/obj"
|
||||||
"net/http"
|
|
||||||
"git.binarythought.com/cdramey/qurl/static"
|
"git.binarythought.com/cdramey/qurl/static"
|
||||||
"git.binarythought.com/cdramey/qurl/storage"
|
"git.binarythought.com/cdramey/qurl/storage"
|
||||||
"git.binarythought.com/cdramey/qurl/obj"
|
"html/template"
|
||||||
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RootHandler struct {
|
type RootHandler struct {
|
||||||
|
@ -3,8 +3,8 @@ package bolt
|
|||||||
import (
|
import (
|
||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
|
||||||
"os"
|
"os"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BoltStorage struct {
|
type BoltStorage struct {
|
||||||
|
@ -2,9 +2,9 @@ package storage
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
|
||||||
"git.binarythought.com/cdramey/qurl/obj"
|
"git.binarythought.com/cdramey/qurl/obj"
|
||||||
"git.binarythought.com/cdramey/qurl/storage/bolt"
|
"git.binarythought.com/cdramey/qurl/storage/bolt"
|
||||||
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user