Skip to content

Instantly share code, notes, and snippets.

View refs's full-sized avatar
🤖
Another pointless day where I accomplish nothing 🍸

Alex Unger refs

🤖
Another pointless day where I accomplish nothing 🍸
View GitHub Profile
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
// Copyright 2018-2020 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Copyright 2018-2020 CERN
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
package store
import (
"testing"
olog "github.com/owncloud/ocis-pkg/v2/log"
"github.com/owncloud/ocis-settings/pkg/proto/v0"
)
var scenarios = []struct {
diff --git a/pkg/command/accounts.go b/pkg/command/accounts.go
index b449349..f3883eb 100644
--- a/pkg/command/accounts.go
+++ b/pkg/command/accounts.go
@@ -3,6 +3,8 @@
package command
import (
+ "fmt"
+
This file has been truncated, but you can view the full file.
{
"data": [
{
"traceID": "b63a9767dff808cd514d7a8675aa1b62",
"spans": [
{
"traceID": "b63a9767dff808cd514d7a8675aa1b62",
"spanID": "9e1b5b007424eb45",
"flags": 1,
"operationName": "auth",
diff --git a/go.mod b/go.mod
index bb61c09..d3a63d1 100644
--- a/go.mod
+++ b/go.mod
@@ -6,6 +6,7 @@ require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
contrib.go.opencensus.io/exporter/ocagent v0.6.0
contrib.go.opencensus.io/exporter/zipkin v0.1.1
+ github.com/UnnoTed/fileb0x v1.1.4 // indirect
github.com/go-chi/chi v4.1.2+incompatible
@refs
refs / logger_middleware.go
Created November 4, 2020 12:03 — forked from blixt/logger_middleware.go
Logger middleware for Go HTTP servers which logs every request with response status code in the Apache format.
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
"time"
)

Width + Precision (*.*)

width

fmt.Printf("%*v", 9, 42) // denoted by *

precision