github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/extern/context/context.gno (about)

     1  package context
     2  
     3  // XXX dummy
     4  type Context interface {
     5  	Err() error
     6  }
     7  
     8  // XXX dummy
     9  type emptyCtx int
    10  
    11  // XXX dummy
    12  func (*emptyCtx) Err() error {
    13  	return nil
    14  }
    15  
    16  // XXX dummy
    17  var (
    18  	background0 emptyCtx
    19  	background  = &background0 // XXX replace with new(emptyCtx)
    20  )
    21  
    22  func Background() Context {
    23  	return background
    24  }