feat: add an example for v2 api
This commit is contained in:
17
examples/example.go
Normal file
17
examples/example.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func main() {
|
||||
documentsDirectory := "/home/h/Documents/"
|
||||
resumeFilename := "resume.pdf"
|
||||
version := 3
|
||||
whereIsMyResume :=
|
||||
filepath.Base(
|
||||
documentsDirectory + "CV" + "_v" + strconv.Itoa(version) + "/" + resumeFilename)
|
||||
fmt.Println(whereIsMyResume)
|
||||
}
|
||||
Reference in New Issue
Block a user