profile
viewpoint
Shivam Mamgain ॐ shivamMg @rapyuta-robotics /root https://shivammamgain.com programmer;

shivamMg/bandict 1

Command-line Urban Dictionary Search

shivamMg/1pr 0

I will be accepting up to one pull request per day on this project.

shivamMg/2016.opentechsummit.net 0

Website of OpenTechSummit 2016

shivamMg/ACG 0

ACG (Angular Card Generator), is an application based on HTML, CSS and AngularJS which can dynamically create visiting cards for you!

shivamMg/acronymFinder 0

Search acronyms

shivamMg/airmozilla 0

AirMozilla is a the video broadcasting site for the Mozilla project

push eventshivamMg/io_builds

Shivam Mamgain

commit sha 6fc42b4485bb25d2b6360e8c478b26bb96cfe3b3

Add partial implementation

view details

push time in 16 days

push eventshivamMg/heavy_talker

Shivam Mamgain

commit sha 481f05663e523adde4483b5021cca6a2d1656a06

Add io_builds.yml

view details

push time in a month

push eventshivamMg/io_builds

Shivam Mamgain

commit sha c9a9fd1951927342ed71188857b4fa024976f087

Read io_builds.yml

view details

push time in a month

push eventshivamMg/heavy_talker

Shivam Mamgain

commit sha 1f671c9535a2d25bcfb074e94c730b0e3aa8cdbe

Create main.yml

view details

push time in a month

create barnchshivamMg/io_builds

branch : master

created branch time in a month

created repositoryshivamMg/io_builds

created time in a month

push eventshivamMg/heavy_talker

Shivam Mamgain

commit sha 086a96f034af04611dc6e23b1a9a96f5922c76ed

Improvements

view details

push time in a month

push eventshivamMg/heavy_talker

Shivam Mamgain

commit sha 0c52e3ebe764cf4e8e5f08aca6dc2bd60e48f09f

Fix README

view details

push time in 2 months

create barnchshivamMg/heavy_talker

branch : master

created branch time in 2 months

created repositoryshivamMg/heavy_talker

created time in 2 months

issue openedgo-yaml/yaml

v3: Can Encode() write 1.0 float as 1.0 (instead of 1)

When printing a float with just a zero after decimal point, the decimal point and the zero is not printed.

func main() {
	m := map[string]interface{}{
		"a": 1.0,
	}
	var buf bytes.Buffer
	enc := goyaml.NewEncoder(&buf)
	if err := enc.Encode(m); err != nil {
		panic(err)
	}
	if err := enc.Close(); err != nil {
		panic(err)
	}
	fmt.Println(string(buf.Bytes()))  // Output: a: 1
        // Expected: a: 1.0
}

I see that internally it does the formatting using strconv.FormatFloat() here. Couldn't figure out a way to do it through strconv.FormatFloat() (convert 1 (float) to "1.0"). If it's possible can it be added to the library?

created time in 2 months

more