Skip to content

arturwwl/gointtoletters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO INT TO LETTERS

Why should You need it? For instance to get Excel column name by index.

example

package main

import (
	"fmt"
	gointtoletters "github.com/arturwwl/gointtoletters"
)

func main() {
	fmt.Println(gointtoletters.IntToLetters(1))// print A
	fmt.Println(gointtoletters.IntToLetters(26))// print Z
	fmt.Println(gointtoletters.IntToLetters(27))// print AA
	fmt.Println(gointtoletters.IntToLetters(1996))// print BXT
	fmt.Println(gointtoletters.IntToLetters(787428))// print ARTUR

	return
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages