go-hep.org/x/hep@v0.38.1/fwk/cmd/fwk-list-components/main.go (about)

     1  // Copyright ©2017 The go-hep 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  package main
     6  
     7  import (
     8  	"fmt"
     9  
    10  	"go-hep.org/x/hep/fwk"
    11  )
    12  
    13  func main() {
    14  	comps := fwk.Registry()
    15  	fmt.Printf("::: components... (%d)\n", len(comps))
    16  	for i, c := range comps {
    17  		fmt.Printf("[%04d/%04d] %s\n", i, len(comps), c)
    18  	}
    19  }