14 lines
236 B
Go
14 lines
236 B
Go
package stamp
|
|
|
|
import "fmt"
|
|
|
|
func StampApi(action string) (res any, err error) {
|
|
switch action {
|
|
case "stampInfo":
|
|
res, err = stampInfo()
|
|
default:
|
|
err = fmt.Errorf("unimplemented action: stamp: %s", action)
|
|
}
|
|
return res, err
|
|
}
|