Mohamed Abukar | 2e78e42 | 2019-06-02 11:45:52 +0300 | [diff] [blame] | 1 | package main |
2 | |||||
3 | import ( | ||||
4 | "github.com/spf13/viper" | ||||
5 | ) | ||||
6 | |||||
7 | // A simple XApp sample program that use "xapp" skeleton | ||||
8 | |||||
9 | func main() { | ||||
10 | if viper.GetString("test.mode") == "generator" { | ||||
11 | generator() | ||||
12 | } else { | ||||
13 | forwarder() | ||||
14 | } | ||||
15 | } |