Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

leighmcculloch/go-fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fmt

A drop-in replacement package for the Go stdlib fmt package that provides three additional functions that behave the same as their counterpart printf functions, but append a new line on the end.

func Printfln(format string, a ...interface{}) (n int, err error)
func Fprintfln(w io.Writer, format string, a ...interface{})
func Sprintfln(format string, a ...interface{})

This package is an implementation of a proposal for the Go stdlib fmt package: golang/go#46190

Usage

import "4d63.com/fmt"
fmt.Printfln("Hello %s!", "world")
fmt.Printfln("G'day %s!", "world")
// Output:
// Hello world!
// G'day world!