github.com/olivere/camlistore@v0.0.0-20140121221811-1b7ac2da0199/third_party/code.google.com/p/rsc/fuse/debug.go (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // FUSE service loop, for servers that wish to use it. 6 7 package fuse 8 9 import ( 10 "runtime" 11 ) 12 13 func stack() string { 14 buf := make([]byte, 1024) 15 return string(buf[:runtime.Stack(buf, false)]) 16 } 17 18 var Debugf = nop 19 20 func nop(string, ...interface{}) {}