How to Publish Golang Package to Github - Getting Started with Golang

Аватар автора
Лаборатория Программирования
#MaharlikansCode #PublishGoPackageToGithub #Golang #LifeAsSoftwareDeveloper #Maharlikans #FilipinoSoftwareDeveloper Source code for the mkcpack package: package mkcpack // AddIntNum is to add two integer numbers func AddIntNum(num1, num2 int) int { return num1 + num2 } Install the new mkcpack package for this demo: Test the mkcpack package with a simple main.go: package main import ( "fmt" ) func main() { val := mkcpack.AddIntNum(1, 2) fmt.Println("val: ", val) }

0/0


0/0

0/0

0/0