github.com/insolar/vanilla@v0.0.0-20201023172447-248fdf805322/args/is_nil.go (about)

     1  // Copyright 2020 Insolar Network Ltd.
     2  // All rights reserved.
     3  // This material is licensed under the Insolar License version 1.0,
     4  // available at https://github.com/insolar/assured-ledger/blob/master/LICENSE.md.
     5  
     6  package args
     7  
     8  import "github.com/insolar/vanilla/reflectkit"
     9  
    10  func IsNil(v interface{}) bool {
    11  	return reflectkit.IsNil(v)
    12  }
    13  
    14  type ShuffleFunc func(n int, swap func(i, j int))