patch fmt: printArg

This commit is contained in:
xushiwei
2024-07-04 17:39:02 +08:00
parent 7e25ec1ac3
commit 23da63767c
2 changed files with 11 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
package main
import "fmt"
import (
"errors"
"fmt"
)
func main() {
fmt.Println("Hello, world")
fmt.Printf("%f\n", 3.14)
fmt.Printf("%v\n", errors.New("error message"))
}