• This project
    • Loading...
  • Sign in

김명현 / Classroom-Reservation

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Classroom-Reservation
  • api
  • utils
  • notation.go
  • freckie's avatar
    Update · 0e00e70c
    0e00e70c
    freckie authored 2020-12-19 03:54:17 +0900
notation.go 206 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package utils

import (
	"strings"
)

func A1ToInt(val string) int64 {
	upperVal := strings.ToUpper(val)
	idx := 0
	for i := range upperVal {
		idx += 26*i + (int(upperVal[i]) - 65)
	}
	return int64(idx)
}