Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 

Repository files navigation

package main

import (
	"fmt"
	"strings"
)

type Profile struct {
	Name         string
	Role         string
	Technologies []string
}

func NewProfile(name string, role string, technologies []string) *Profile {
	return &Profile{
		Name:         name,
		Role:         role,
		Technologies: technologies,
	}
}

func (p *Profile) formatLanguages() string {
	return strings.Join(p.Technologies, ", ")
}

func (p *Profile) SayHi() {
	fmt.Println("Hi! Here is a bit about me:")
	fmt.Println()
	fmt.Printf("  Name			: %s\n", p.Name)
	fmt.Printf("  Role			: %s\n", p.Role)
	fmt.Printf("  Technologies	: %s\n", strings.Join(p.Technologies, ", "))
	fmt.Println()
	fmt.Println("I hope you find something interesting here!")
}

func main() {
	me := NewProfile("Ahmad Faisal", "Software Engineer", []string{
		"Go",
		"Fiber",
		"Node.js (TypeScript and JavaScript)",
		"Express.js",
		"Nest.js",
		"Swagger",
		"Bash",
		"PostgreSQL",
		"MySQL",
		"Linux",
		"Git",
		"Bash",
		"AWS",
		"Kubernetes",
		"Docker",
		"Terraform",
		"Jenkins",
		"GitHub Actions",
		"Firebase",
		"Dart",
		"Flutter",
		"React Native",
		"TestFlight",
	})
	me.SayHi()
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors