gitlab.com/Raven-IO/raven-delve@v1.22.4/_fixtures/plugin2/plugin2.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"gitlab.com/Raven-IO/raven-delve/_fixtures/internal/pluginsupport"
     6  )
     7  
     8  func Fn2() string {
     9  	return "world"
    10  }
    11  
    12  type asomethingelse struct {
    13  	x, y float64
    14  }
    15  
    16  func (a *asomethingelse) Callback2(n, m int) float64 {
    17  	r := a.x + 2*a.y
    18  	r += float64(n) / float64(m)
    19  	return r
    20  }
    21  
    22  func TypesTest(s pluginsupport.Something) pluginsupport.SomethingElse {
    23  	if A != nil {
    24  		aIsNotNil(fmt.Sprintf("%s", A))
    25  	}
    26  	return &asomethingelse{1.0, float64(s.Callback(2))}
    27  }
    28  
    29  var A interface{}
    30  
    31  func aIsNotNil(str string) {
    32  	// nothing here
    33  }