Skip to main content

Posts

CloverETL Designer4.9 Quick Start

Recent posts

C programming

C Program Compilation A simple C program For this lecture, we will learn how to write, compile, and run a very basic C program, and we will discuss the steps that are involved in creating the executable. The following C program prints out the text “Hello world!” to the screen: /* * File: hello.c * ------------- * This simple C program prints out the text "Hello world!". */ #include<stdio.h> int main(void) { printf("Hello world!\n"); } To compile this program, we will be using the gcc compiler in Linux, which stands for “Gnu Compiler Collection”, and it is used as follows: $ gcc hello.c This creates an executable called a.out. To run the executable, you would type $ ./a.out Hello world! If we wanted to create an executable that is named something other than a.out, we would use the -o option in the form $ gcc -o hello hello.c and we could run the hello executable with $ ./hello Hello world! In what fol

Your First Go Code

How to Write Go Code Introduction Code organization GOPATH and workspaces Import paths Package names Building and installing Building a package Building a command Testing Remote packages Further reading Introduction This document demonstrates the development of a simple Go package and introduces the  go command , the standard way to fetch, build, and install Go packages and commands. Code organization GOPATH  and workspaces One of Go's design goals is to make writing software easier. To that end, the  go  command doesn't use Makefiles or other configuration files to guide program construction. Instead, it uses the source code to find dependencies and determine build conditions. This means your source code and build scripts are always in sync; they are one and the same. The one thing you must do is set a  GOPATH  environment variable.  GOPATH  tells the  go  command (and other related tools) where to find and install the Go packages on your syst

Command go

Command go Compile packages and dependencies Remove object files Run godoc on package sources Print Go environment information Run go tool fix on packages Run gofmt on package sources Download and install packages and dependencies Compile and install packages and dependencies List packages Compile and run Go program Test packages Run specified go tool Print Go version Run go tool vet on packages GOPATH environment variable Description of package lists Remote import path syntax Description of testing flags Description of testing functions Go is a tool for managing Go source code. Usage: go command [arguments] The commands are: build compile packages and dependencies clean remove object files doc run godoc on package sources env print Go environment information fix run go tool fix on packages fmt run gofmt on package sources get download and install packages and dependencies install compile and install packages