Giter Club home page Giter Club logo

this sums it up pretty well I guess

package beakeyz

import(
    "fmt"
)

type Beakeyz struct {
    Id            int
    FavoriteLangs []string
    Learning      []string
    Hates         []string
    Loves         []string
}

// helper function in a readme. Noice
func getAttribute(a []string) string {
    var val string
    for index, value := range(a) {
        if index == len(a) - 1 {
            val = append(val, "and " + value)
        } else {
            val = append(val, value + ", ")
        }
    }
    return val
}

// mega epic
func (self Beakeyz) PrintSelf() {
    fmt.Printf("My age is: %s\n", self.Id)
    
    fmt.Printf("My favorite languages are: %s\n", getAttribute(self.FavoriteLangs))
    fmt.Printf("I'm currently learning: %s\n", getAttribute(self.Learning))
    fmt.Printf("I don't like: %s\n", getAttribute(self.Hates))
    fmt.Printf("I love: %s\n", getAttribute(self.Loves))
}

// main function (this comment is for people without eyeballs)
func main() {
    var me Beakeyz = &Beakeyz {
        Id: 18,
        FavoriteLangs: []string{"go", "java", "c"}, // java is just here because of nostalgia, its pretty trash otherwise lol
        Learning: []string{"C#", "Rust", "(opperating) systems", "assembly"},
        Hates: []string{"not much atm"},
        Loves: []string{"skiing", "programming", "music", "crap to do with space"}
    }

    me.PrintSelf()
}

beakeyz's Projects

dadjoke-gen icon dadjoke-gen

A client-server dynamic, written in golang, to store and obtain dadjokes to and from a sql database

limine icon limine

Modern, advanced, portable, multiprotocol bootloader.

mellews icon mellews

Melle Web Services, a collection of useful web-based tools and APIs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.