github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/amino/genproto/example/package.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gnolang/gno/tm2/pkg/amino"
     5  	"github.com/gnolang/gno/tm2/pkg/amino/genproto/example/submodule"
     6  )
     7  
     8  var Package = amino.RegisterPackage(
     9  	amino.NewPackage(
    10  		"main",
    11  		"main",
    12  		amino.GetCallersDirname(),
    13  	).WithP3GoPkgPath(
    14  		"github.com/gnolang/gno/tm2/pkg/amino/genproto/example/pb",
    15  	).WithDependencies(
    16  		submodule.Package,
    17  	).WithTypes(
    18  		StructA{},
    19  		StructB{},
    20  	),
    21  )