default package
This commit is contained in:
parent
47bd07057a
commit
832053aa2c
@ -3,7 +3,7 @@ package main
|
||||
import "fmt"
|
||||
import "log"
|
||||
import "os"
|
||||
import "meutel.net/meutel/go-examples/converter"
|
||||
import . "meutel.net/meutel/go-examples/converter"
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 3 {
|
||||
@ -12,7 +12,7 @@ func main() {
|
||||
input := os.Args[1]
|
||||
convTo := os.Args[2]
|
||||
|
||||
result, err := converter.Convert(input, convTo)
|
||||
result, err := Convert(input, convTo)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user