17 lines
270 B
Go
17 lines
270 B
Go
package main
|
|
|
|
import "fmt"
|
|
import "log"
|
|
import "os"
|
|
import "meutel.net/meutel/go-examples/converter"
|
|
|
|
func main() {
|
|
if len(os.Args) < 3 {
|
|
log.Fatalln("Needs 2 arguments")
|
|
}
|
|
input := os.Args[1]
|
|
convTo := os.Args[2]
|
|
|
|
fmt.Println(converter.Convert(input, convTo))
|
|
}
|